Magento responding '503 service unavailable' fails the job

Bug #1194733 reported by Guewen Baconnier @ Camptocamp
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Connector - Magento
Fix Released
Guewen Baconnier @ Camptocamp

Bug Description

A job receiving a 503 service unavailable from the Magento API fails, it should be retried later instead.

Traceback (most recent call last):
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/connector/connector/queue/", line 122, in run_job
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/connector/connector/queue/", line 460, in perform
    self.result = self.func(session, *self.args, **self.kwargs)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/", line 311, in import_record, force=force)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/", line 145, in run
    self.magento_record = self._get_magento_data()
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/", line 61, in _get_magento_data
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/", line 159, in read
    [int(id), attributes])
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/", line 190, in _call
    return super(PartnerAdapter, self)._call(method, arguments)
  File "/home/gbaconnier/code/dev_instances/openerp_magento7/parts/magentoerpconnect/magentoerpconnect/unit/", line 126, in _call
    self.magento.password) as api:
  File "/home/gbaconnier/.dotfiles/buildout/eggs/magento-0.1.4-py2.6.egg/magento/", line 138, in __enter__
    self.username, self.password)
  File "/usr/lib/python2.6/", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/", line 1489, in __request
  File "/usr/lib/python2.6/", line 1243, in request
ProtocolError: <ProtocolError for yushan.wrk.lsn:9100/index.php/api/xmlrpc: 503 Service Unavailable>

summary: - Magento responding 503 service unavailable fails
+ Magento responding '503 service unavailable' fails the job
Changed in openerp-connector:
status: New → Fix Committed
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
importance: Undecided → Low
Changed in openerp-connector:
status: Fix Committed → Fix Released
information type: Embargoed → Public
affects: openerp-connector → 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.