Prepare a batch import of records from Magento

Bug #1266166 reported by Oriol Valls Anton
This bug report is a duplicate of:  Bug #1210775: group_id problem in Partner Import. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
New
Undecided
Unassigned

Bug Description

Hello, I obtain the error below trying to Import products categories since 01/05/2014 9:02:02 AM

UUID 078dc9a4-7b58-4c55-a769-651b1c448598
Task openerp.addons.magentoerpconnect.unit.import_synchronizer.import_batch('magento.product.category', 1, filters={'from_date': None})
Priority 10
Execute only after
User ID Administrator
Created Date 01/05/2014 9:02:02 AM
Enqueue Time 01/05/2014 9:02:12 AM
Start Date 01/05/2014 9:02:12 AM
Date Done
Worker
Current try / max. retries 1 / 5 If the max. retries is 0, the number of retries is infinite.

Exception Information

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/openerp/addons/connector/queue/worker.py", line 122, in run_job
    job.perform(session)
  File "/usr/lib/pymodules/python2.7/openerp/addons/connector/queue/job.py", line 465, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/unit/import_synchronizer.py", line 321, in import_batch
    importer.run(filters=filters)
  File "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/product_category.py", line 179, in run
    tree = self.backend_adapter.tree()
  File "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/product_category.py", line 142, in tree
    [parent_id, storeview_id])
  File "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/product_category.py", line 93, in _call
    return super(ProductCategoryAdapter, self)._call(method, arguments)
  File "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/unit/backend_adapter.py", line 129, in _call
    result = api.call(method, arguments)
  File "/usr/local/lib/python2.7/dist-packages/magento-0.4-py2.7.egg/magento/api.py", line 161, in call
    return self.client.call(self.session, resource_path, arguments)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
    raise Fault(**self._stack[0])
Fault: <Fault 1: 'Internal Error. Please see log for details.'>

Thanks

Revision history for this message
Guewen Baconnier @ Camptocamp (gbaconnier-c2c) wrote : Re: [Bug 1266166] [NEW] Prepare a batch import of records from Magento
Download full text (6.0 KiB)

Hi, this is an error returned by magento itself. You should have more
information in the magento's logs.
Le 5 janv. 2014 09:20, "Oriol Valls Anton" <email address hidden> a écrit :

> Public bug reported:
>
> Hello, I obtain the error below trying to Import products categories
> since 01/05/2014 9:02:02 AM
>
>
> UUID 078dc9a4-7b58-4c55-a769-651b1c448598
> Task
> openerp.addons.magentoerpconnect.unit.import_synchronizer.import_batch('magento.product.category',
> 1, filters={'from_date': None})
> Priority 10
> Execute only after
> User ID Administrator
> Created Date 01/05/2014 9:02:02 AM
> Enqueue Time 01/05/2014 9:02:12 AM
> Start Date 01/05/2014 9:02:12 AM
> Date Done
> Worker
> Current try / max. retries 1 / 5 If the max. retries is 0, the number of
> retries is infinite.
>
> Exception Information
>
> Traceback (most recent call last):
> File
> "/usr/lib/pymodules/python2.7/openerp/addons/connector/queue/worker.py",
> line 122, in run_job
> job.perform(session)
> File
> "/usr/lib/pymodules/python2.7/openerp/addons/connector/queue/job.py", line
> 465, in perform
> self.result = self.func(session, *self.args, **self.kwargs)
> File
> "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/unit/import_synchronizer.py",
> line 321, in import_batch
> importer.run(filters=filters)
> File
> "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/product_category.py",
> line 179, in run
> tree = self.backend_adapter.tree()
> File
> "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/product_category.py",
> line 142, in tree
> [parent_id, storeview_id])
> File
> "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/product_category.py",
> line 93, in _call
> return super(ProductCategoryAdapter, self)._call(method, arguments)
> File
> "/usr/lib/pymodules/python2.7/openerp/addons/magentoerpconnect/unit/backend_adapter.py",
> line 129, in _call
> result = api.call(method, arguments)
> File
> "/usr/local/lib/python2.7/dist-packages/magento-0.4-py2.7.egg/magento/api.py",
> line 161, in call
> return self.client.call(self.session, resource_path, arguments)
> File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
> return self.__send(self.__name, args)
> File "/usr/lib/python2.7/xmlrpclib.py", line 1578, in __request
> verbose=self.__verbose
> File "/usr/lib/python2.7/xmlrpclib.py", line 1264, in request
> return self.single_request(host, handler, request_body, verbose)
> File "/usr/lib/python2.7/xmlrpclib.py", line 1297, in single_request
> return self.parse_response(response)
> File "/usr/lib/python2.7/xmlrpclib.py", line 1473, in parse_response
> return u.close()
> File "/usr/lib/python2.7/xmlrpclib.py", line 793, in close
> raise Fault(**self._stack[0])
> Fault: <Fault 1: 'Internal Error. Please see log for details.'>
>
> Thanks
>
> ** Affects: magentoerpconnect
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Project Group.
> https://bugs.launchpad.net/bugs/1266166
>
> Title:
> Prepare a batch import of records from Magento
>
> Status in Magen...

Read more...

Revision history for this message
Thierry (tboulogne) wrote :

Hello,

Get the same error and get this log from magento :

2014-01-07T16:32:42+00:00 DEBUG (7): Argument 1 passed to Mage_Catalog_Model_Category_Api::_nodeToArray() must be an instance of Varien_Data_Tree_Node, null given, called in /www/tng-design.com/app/code/core/Mage/Catalog/Model/Category/Api.php on line 159 and defined/www/tng-design.com/app/code/core/Mage/Catalog/Model/Category/Api.php

I think there is a problem into the connector on magento side. I will post here if i found something.

regards,

Revision history for this message
Thierry (tboulogne) wrote :

Hello,

I applied the patch from comment #18 into bug #1210775

https://bugs.launchpad.net/openerp-connector-magento/+bug/1210775

It's seems a php version issue (PHP > 5.3). After applying patch it's works.

Hope it could help.

Regards,

affects: magentoerpconnect → openerp-connector-magento
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.