← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 706260] Re: [6.0.1] Export of catalogue gives 'UnicodeDecodeError'

 

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

** Changed in: magentoerpconnect
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/706260

Title:
  [6.0.1] Export of catalogue gives 'UnicodeDecodeError'

Status in Magento OpenERP Connector:
  Incomplete

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/magentoerpconnect/+bug/706260/+subscriptions


References