openlabs / pystashop

Prestashop Python API
10 stars 8 forks source link

Error String could not be parsed as XML #8

Open yassFar opened 9 years ago

yassFar commented 9 years ago

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 commented 9 years ago

Can someone else confirm the issue ?