{"action":"closed","issue":{"url":"https://api.github.com/repos/xbenjii/Prestan/issues/2","labels_url":"https://api.github.com/repos/xbenjii/Prestan/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/xbenjii/Prestan/issues/2/comments","events_url":"https://api.github.com/repos/xbenjii/Prestan/issues/2/events","html_url":"https://github.com/xbenjii/Prestan/issues/2","id":101285246,"number":2,"title":"edit response: String could not be parsed as XML","user":{"login":"sproit","id":13822050,"avatar_url":"https://avatars.githubusercontent.com/u/13822050?v=3","gravatar_id":"","url":"https://api.github.com/users/sproit","html_url":"https://github.com/sproit","followers_url":"https://api.github.com/users/sproit/followers","following_url":"https://api.github.com/users/sproit/following{/other_user}","gists_url":"https://api.github.com/users/sproit/gists{/gist_id}","starred_url":"https://api.github.com/users/sproit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sproit/subscriptions","organizations_url":"https://api.github.com/users/sproit/orgs","repos_url":"https://api.github.com/users/sproit/repos","events_url":"https://api.github.com/users/sproit/events{/privacy}","received_events_url":"https://api.github.com/users/sproit/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xbenjii/Prestan/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-16T18:01:28Z","updated_at":"2015-08-17T15:11:21Z","closed_at":"2015-08-17T15:11:21Z","body":"My minimal example is as follows:\r\n\r\n```javascript\r\nvar id = 1;\r\nprestan.get('products', {\r\n    id: id\r\n}).then(function(response) {\r\n    prestan.edit('products', {id: id}, response);\r\n});\r\n```\r\n\r\nI guess the error is something that comes from the webshop itself? If you need any additional info, let me know.\r\n\r\nA snippet from the edit request (I changed the name of the website):\r\n\r\nRequesting[put] http://blablabla.bla/api/products/28216 with options {\"form\":{\"putXml\":\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\\n<prestashop xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\">\\n  <product>\\n    <id>28216</id>\\n    <id_manufacturer xlink:href=\\\"https://blablabla.bla/api/manufacturers/47\\\">47</id_manufacturer>\\n    <id_supplier>0</id_supplier>\\n    <id_category_default xlink:href=\\\"https://blablabla.bla/api/categories/1004\\\">1004</id_category_default>\\n    <new/>\\n    <cache_default_attribute>0</cache_default_attribute>\\n    <id_default_image xlink:href=\\\"https://blablabla.bla/api/images/products......\r\n\r\nMore error message:\r\nError: [StatusCodeError: 500 - <?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">\r\n<errors>\r\n<error>\r\n<code><![CDATA[127]]></code>\r\n<message><![CDATA[XML error : String could not be parsed as XML\r\nXML length : 9982\r\nOriginal XML : putXml=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%20standalone%3D%22yes%22%3F%3E%0A%3Cprestashop%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%0A%20%20%3Cproduct%3E%0A%20%20%20%20%3Cid%3E28216%3C%2Fid%3E%0A%20%20%20%20%3Cid_manufacturer%20xlink%3Ahref%3D%22......"}}