Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

Error String could not be parsed as XML #8

Description

@yassFar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions