[6.0.1] Export of catalogue gives 'UnicodeDecodeError'

Bug #706260 reported by Peter Glock
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magento OpenERP Connector
Invalid
Undecided
Unassigned

Bug Description

Attemping to export ctalogue using web or gtk client gives following error:

ERROR:web-services:Uncaught exception
Traceback (most recent call last):
  File "/opt/local/src/openerp6/server/bin/osv/osv.py", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/local/src/openerp6/server/bin/osv/osv.py", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/local/src/openerp6/server/bin/osv/osv.py", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/local/src/openerp6/addons/base_sale_multichannels/sale.py", line 146, in export_catalog
    self.export_categories(cr, uid, shop, context)
  File "/opt/local/src/openerp6/addons/base_sale_multichannels/sale.py", line 132, in export_categories
    self.pool.get('product.category').ext_export(cr, uid, [categ_id for categ_id in categories], [shop.referential_id.id], {}, context)
  File "/opt/local/src/openerp6/addons/magentoerpconnect6/product.py", line 135, in ext_export
    res = super(product_category, self).ext_export(cr, uid, ids, external_referential_ids, defaults, context)
  File "/opt/local/src/openerp6/addons/base_external_referentials/external_osv.py", line 331, in ext_export
    self.ext_update(cr, uid, exp_data, conn, mapping_rec['external_update_method'], record_data['id'], ext_id, rec_check_ids[0], mapping_rec['external_create_method'], context)
  File "/opt/local/src/openerp6/addons/base_external_referentials/external_osv.py", line 375, in ext_update
    crid = self.ext_create(cr, uid, data, conn, create_method, oe_id, context)
  File "/opt/local/src/openerp6/addons/magentoerpconnect6/product.py", line 40, in ext_create
    return conn.call(method, [data.get('parent_id', 1), data])
  File "/opt/local/src/openerp6/addons/magentoerpconnect6/magerp_osv.py", line 53, in call
    res = self.ser.call(self.session, method, arguments)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1570, in __request
    verbose=self.__verbose
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1292, in single_request
    self.send_content(h, request_body)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py", line 1439, in send_content
    connection.endheaders(request_body)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 937, in endheaders
    self._send_output(message_body)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 795, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 763: ordinal not in range(128)

Revision history for this message
Sébastien BEAU - http://www.akretion.com (sebastien.beau) wrote :

Can you try with trunk version? I make some change with unicode

Changed in magentoerpconnect:
status: New → Incomplete
Changed in magentoerpconnect:
status: Incomplete → Invalid
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.