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

Error String could not be parsed as XML #8

Open
yassFar opened this issue Feb 10, 2015 · 1 comment
Open

Error String could not be parsed as XML #8

yassFar opened this issue Feb 10, 2015 · 1 comment

Comments

@yassFar
Copy link

yassFar commented Feb 10, 2015

Hello rituparnapanda,

I'm writing about a problem when I try to create a cart using to example usage.
I got the following raise exeption:

error presta

I resolved the problem by modifing the create class method (prestashop/api.py), line 114:
cls.url, data={'xml': etree.tostring(root)} => cls.url, data= etree.tostring(root)

Here a link about a person who had the same problem in php:
https://www.prestashop.com/forums/topic/243364-problem-using-webservice-from-external-application-xml-error-string-could-not-be-parsed-as-xml/

Best regards

P.S: I am working with the 1.6.0.1version of Prestashop

@sharoonthomas
Copy link

Can someone else confirm the issue ?

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

2 participants