Note that there are some explanatory texts on larger screens.

plurals
  1. POElemenTree error, prestashop - openerp connector module
    primarykey
    data
    text
    <p>I'm using the <code>prestashop-openerp</code> connector <a href="https://launchpad.net/prestashoperpconnect" rel="nofollow noreferrer">launchpad site</a></p> <p>Could install everyhting, no errors, but when i try to <code>connect</code> with my remote <code>prestashop</code> website interface It throws this error:</p> <pre><code>ParseError: mismatched tag: line 13, column 2 </code></pre> <p>And the Server traceback:</p> <pre><code>Server Traceback (most recent call last): File "/usr/lib/pymodules/python2.7/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/usr/lib/pymodules/python2.7/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/usr/lib/pymodules/python2.7/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, *args, **kwargs) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/usr/lib/pymodules/python2.7/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/prestashop_model.py", line 103, in synchronize_metadata import_batch(session, model, backend_id) File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 663, in import_batch importer.run(filters=filters, **kwargs) File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 176, in run record_ids = self._run_page(filters) File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/import_synchronizer.py", line 184, in _run_page record_ids = self.backend_adapter.search(filters) File "/usr/prestaconnect/prestashoperpconnect/prestashoperpconnect/unit/backend_adapter.py", line 126, in search return api.search(self._prestashop_model, filters) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 494, in search search(resource, options=options) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 348, in search return self.get(resource, options=options) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 516, in get response = super(PrestaShopWebServiceDict, self).get(resource, resource_id=resource_id, options=options) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 366, in get return self.get_with_url(full_url) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 536, in get_with_url response = super(PrestaShopWebServiceDict, self).get_with_url(url) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 375, in get_with_url r = self._execute(url, 'GET') File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 206, in _execute self._check_status_code(r.status_code, r.content) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 144, in _check_status_code ps_error_code, ps_error_msg = self._parse_error(content) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 116, in _parse_error error_answer = self._parse(xml_content) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 619, in _parse parsed_content = super(PrestaShopWebServiceDict, self)._parse(content) File "/usr/prestaconnect/prestashoperpconnect/src/prestapyt/prestapyt/prestapyt.py", line 227, in _parse parsed_content = ElementTree.fromstring(unicode_encode.unicode2encoding(content)) File "&lt;string&gt;", line 124, in XML </code></pre> <p>I've searched for some answer, saw this <a href="https://stackoverflow.com/questions/9672448/urllib-combined-together-with-elementtree">question here on SO</a> but still no clue.</p> <p>IDK if this is actually a bug of the module, or the <code>prestapyt</code> library, i really don't know, or maybe an error with some <code>xml</code> in my prestashop install.</p> <p>Anybody have used this module, or has any clue about this?</p> <p>Thanks in advance!</p> <p>EDIT</p> <p>This was an outdated version of prestapyt, now i have the last one, and the traceback error is more clear:</p> <pre><code> parsed_content = super(PrestaShopWebServiceDict, self)._parse(content) File "/usr/local/lib/python2.7/dist-packages/prestapyt-0.6.0-py2.7.egg/prestapyt/prestapyt.py", line 214, in _parse raise PrestaShopWebServiceError('HTTP XML response is not parsable : %s. %s' % (e, content[:512])) PrestaShopWebServiceError: 'HTTP XML response is not parsable : mismatched tag: line 13, column 2. &lt;HTML&gt;\n&lt;HEAD&gt;\n&lt;TITLE&gt;404 Not Found&lt;/TITLE&gt;\n&lt;/HEAD&gt;\n&lt;BODY&gt;\n&lt;H1&gt;Not Found&lt;/H1&gt;\nThe requested document was not found on this server.\n&lt;P&gt;\n&lt;HR&gt;\n&lt;ADDRESS&gt;\nWeb Server at taxco.com.ve\n&lt;/ADDRESS&gt;\n&lt;/BODY&gt;\n&lt;/HTML&gt;\n\n&lt;!--\n - Unfortunately, Microsoft has added a clever new\n - "feature" to Internet Explorer. If the text of\n - an error\'s message is "too small", specifically\n - less than 512 bytes, Internet Explorer returns\n - its own error message. You can turn that off,\n - but it\'s pretty tricky to find switch' </code></pre> <p>It's a <code>404</code> error, but i don't know which file should be added there, someone with experience implementing this connector?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload