-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login error #16
Comments
For me this error occured because the Magento installation was behind an .htaccess basic auth. Without it I could login without any problem. |
Try using https connection, i had the same problem and these was the solution |
@UJosue Can you share the example snippet using https? Thanks. |
@DeBraid Sure, on file: src>magento.js edit the JSON configDefaults, and add the element
After replace the line 80: this.client = xmlrpc.createClient(this.config); For: if (!this.config.secure) {
this.client = xmlrpc.createClient(this.config);
} else {
this.client = xmlrpc.createSecureClient(this.config);
} Finally, to use it you just have to write: var magento = new MagentoAPI({
host: 'your.host',
port: 443,
path: '/api/xmlrpc/',
login: 'your_username',
pass: 'your_pass',
secure: true
}); I've a fork where is applied already, you can find it on https://github.com/KemikGT/magentoapi |
I'm stuck to this error at login:
I'm qerying this url
I also try this url http://shop.leburger.nl/index.php/api/xmlrpc/ but I have a not found error:
code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo',
The text was updated successfully, but these errors were encountered: