openerp-connector-community team mailing list archive
-
openerp-connector-community team
-
Mailing list archive
-
Message #00145
HTTP Error 401: Unauthorized
Hey all,
i am importing a big shop for testing to the Magento Connector.
Partners import went fine!
Product import throws following error:
raceback (most recent call last):
File "/opt/openerp/server-7.0/openerp/my_addons/openerp-connector/connector/queue/worker.py", line 122, in run_job
job.perform(session)
File "/opt/openerp/server-7.0/openerp/my_addons/openerp-connector/connector/queue/job.py", line 465, in perform
self.result = self.func(session, *self.args, **self.kwargs)
File "/opt/openerp/server-7.0/openerp/my_addons/openerp-connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 329, in import_record
importer.run(magento_id, force=force)
File "/opt/openerp/server-7.0/openerp/my_addons/openerp-connector-magento/magentoerpconnect/unit/import_synchronizer.py", line 191, in run
self._after_import(binding_id)
File "/opt/openerp/server-7.0/openerp/my_addons/openerp-connector-magento/magentoerpconnect/product.py", line 384, in _after_import
image_importer.run(self.magento_id, binding_id)
File "/opt/openerp/server-7.0/openerp/my_addons/openerp-connector-magento/magentoerpconnect/product.py", line 304, in run
binary = self._get_binary_image(images.pop())
File "/opt/openerp/server-7.0/openerp/my_addons/openerp-connector-magento/magentoerpconnect/product.py", line 285, in _get_binary_image
binary = urllib2.urlopen(url)
File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen
return _opener.open(url, data, timeout)
File "/usr/lib/python2.7/urllib2.py", line 406, in open
response = meth(req, response)
File "/usr/lib/python2.7/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.7/urllib2.py", line 444, in error
return self._call_chain(*args)
File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/usr/lib/python2.7/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 401: Unauthorized
Have someone such a error or know what it could be.
Orders can’t be imported as well.
Error is that e.g. th imported field in magento isn’t there. I think the module in Magento wasn’t installed right. Will check that.
Do you think the 401 Error can come from there too or does the server blocks me because of many requests?
(2 products are imported, after that only errors)
Thank you!
Follow ups