Skip to content
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

Open
ghost opened this issue Jan 4, 2015 · 4 comments
Open

Login error #16

ghost opened this issue Jan 4, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Jan 4, 2015

I'm stuck to this error at login:

  • Login Error: Error: Unknown XML-RPC tag 'TITLE'

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',

@fnogatz
Copy link

fnogatz commented Mar 25, 2015

For me this error occured because the Magento installation was behind an .htaccess basic auth. Without it I could login without any problem.

@UJosue-zz
Copy link

Try using https connection, i had the same problem and these was the solution

@DeBraid
Copy link

DeBraid commented Apr 6, 2017

@UJosue Can you share the example snippet using https? Thanks.

@UJosue-zz
Copy link

@DeBraid Sure, on file: src>magento.js edit the JSON configDefaults, and add the element

secure: false

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants