PrestaShopWebServiceError

Bug #1290994 reported by Wes Lee
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Prestashop OpenERP Connector
New
Undecided
Unassigned

Bug Description

Goodday!

After installing the openerp connector succesfully, I try to synchronize the metadata by clicking on " Synchronize Metadata".

But this gives me an error:
 PrestaShopWebServiceError: 'HTTP XML response is not parsable : undefined entity  : line 2, column 1879.

My configuration is:

Version = 1.5
 Location = http://localhost/prestashop/administration/
 Webservice key = P2SXKSDWHCR6RUW31KKUISW7TQT3WQII

The compleet error is:

OpenERP Server Error

Client Traceback (most recent call last):
   File "/opt/openerp/v7/web/addons/web/http.py", line 204, in dispatch
     response["result"] = method(self, **self.params)
   File "/opt/openerp/v7/web/addons/web/controllers/main.py", line 1132, in call_button
     action = self._call_kw(req, model, method, args, {})
   File "/opt/openerp/v7/web/addons/web/controllers/main.py", line 1120, in _call_kw
     return getattr(req.session.model(model), method)(*args, **kwargs)
   File "/opt/openerp/v7/web/addons/web/session.py", line 42, in proxy
     result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw)
   File "/opt/openerp/v7/web/addons/web/session.py", line 30, in proxy_method
     result = self.session.send(self.service_name, method, *args)
   File "/opt/openerp/v7/web/addons/web/session.py", line 103, in send
     raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last):
   File "/opt/openerp/v7/web/addons/web/session.py", line 89, in send
     return openerp.netsvc.dispatch_rpc(service_name, method, args)
   File "/opt/openerp/v7/server/openerp/netsvc.py", line 292, in dispatch_rpc
     result = ExportService.getService(service_name).dispatch(method, params)
   File "/opt/openerp/v7/server/openerp/service/web_services.py", line 626, in dispatch
     res = fn(db, uid, *params)
   File "/opt/openerp/v7/server/openerp/osv/osv.py", line 190, in execute_kw
     return self.execute(db, uid, obj, method, *args, **kw or {})
   File "/opt/openerp/v7/server/openerp/osv/osv.py", line 132, in wrapper
     return f(self, dbname, *args, **kwargs)
   File "/opt/openerp/v7/server/openerp/osv/osv.py", line 199, in execute
     res = self.execute_cr(cr, uid, obj, method, *args, **kw)
   File "/opt/openerp/v7/server/openerp/osv/osv.py", line 187, in execute_cr
     return getattr(object, method)(cr, uid, *args, **kw)
   File "/home/wessiez/presta_erp/prestashoperpconnect/prestashoperpconnect/prestashop_model.py", line 109, in synchronize_metadata
     import_batch(session, model, backend_id)
   File "/home/wessiez/presta_erp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 787, in import_batch
     importer.run(filters=filters, **kwargs)
   File "/home/wessiez/presta_erp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 182, in run
     record_ids = self._run_page(filters, **kwargs)
   File "/home/wessiez/presta_erp/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 190, in _run_page
     record_ids = self.backend_adapter.search(filters)
   File "/home/wessiez/presta_erp/prestashoperpconnect/prestashoperpconnect/unit/backend_adapter.py", line 126, in search
     return api.search(self._prestashop_model, filters)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 470, in search
     search(resource, options=options)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 299, in search
     return self.get(resource, options=options)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 317, in get
     return self.get_with_url(full_url)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 489, in get_with_url
     response = super(PrestaShopWebServiceDict, self).get_with_url(url)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 326, in get_with_url
     return self._parse(self._execute(url, 'GET')[2])
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 197, in _execute
     self._check_status_code(status_code, content)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 128, in _check_status_code
     raise PrestaShopWebServiceError(error_label % (status_code, message_by_code[status_code], self._parse_error(content)), status_code)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 153, in _parse_error
     answer = self._parse(xml_content)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 526, in _parse
     parsed_content = super(PrestaShopWebServiceDict, self)._parse(content)
   File "/usr/local/lib/python2.7/site-packages/prestapyt/prestapyt.py", line 216, in _parse
     raise PrestaShopWebServiceError('HTTP XML response is not parsable : %s. %s' % (e, content[:512]))
 PrestaShopWebServiceError: 'HTTP XML response is not parsable : undefined entity &nbsp;: line 2, column 1879. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7 " lang="nl"> <![endif]--> <!--[if IE 7]><html class="no-js lt-ie9 lt-ie8 ie7" lang="nl"> <![endif]--> <!--[if IE 8]><html class="no-js lt-ie9 ie8" lang="nl"> <![endif]--> <!--[if gt IE 8]><html class="no-js ie9" lang="nl"> <![endif]--><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl"><head><title>PrestaShop</title><meta http-equiv="Content-Type" co'

Revision history for this message
Bern Schneider (mia-11ngola) wrote :

Hello,

There's not a patch to this bug??

How to managa synchronysation between OE and PRESTASHOP 1.4.x

Thx,
Vitasoa

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.