faisalsami / odoo-xmlrpc

Node.js client library for odoo ERP using xmlrpc.
104 stars 85 forks source link

Error: Unknown XML-RPC tag 'TITLE' #3

Closed WoodyPhil closed 7 years ago

WoodyPhil commented 7 years ago

Always when i try to connnect, i get the following error:

Error: Unknown XML-RPC tag 'TITLE'

But the login params are fine, i tested them with python. With python it worked correctly.

I executed the file with: node simple.js

Thomathan commented 7 years ago

Just ran into the same issue and found my problem after some debugging. Besides awful and generic errors from node-xmlrpc, it seems that odoo-xmlrpc does not support HTTPS connections. To support HTTPS, you can replace all instances of xmlrpc.createClient with xmlrpc.createSecureClient

rossigee commented 7 years ago

@Thomathan - you may have been using an older version. This was fixed in a recent release. It now checks for 'https' and uses the correct function accordingly...

https://github.com/faisalsami/odoo-xmlrpc/blob/master/lib/index.js#L22

rossigee commented 7 years ago

@WoodyPhil - I'm getting the same currently. The cause in my case seems to be an nginx redirect returning an HTML page, and so it's trying to parse the 'title' child element as XMLRPC and failing. At the moment, it seems like it might be more of a hosting config related issue rather than a bug in this lib specifically.

rossigee commented 7 years ago

So it turns out that my problem is also that I've got an old copy of 'odoo-xmlrpc' from doing 'npm install odoo-xmlrpc' :-1:

Workaround - npm install https://github.com/faisalsami/odoo-xmlrpc

@faisalsami - please ensure the latest version is released via npm and close this ticket. Thanks.

natoine commented 7 years ago

I met the same error and found it online : https://github.com/scottgonzalez/node-wordpress/issues/17

faisalsami commented 7 years ago

Published latest version on npm. Sorry for publishing late.