← Back to team overview

openerp-connector-community team mailing list archive

Re: HTTP Error 401: Unauthorized

 

According to the traceback, it happens when it calls the "urlopen" to read
the content of the images.

Magento API's product Infos sends an URL of the image and the connector
read it from this URL. Could be the URL of the image that is not accessible
or as you said a rule blocking you after too many requests.

- Guewen
Le 18 janv. 2014 18:32, "greencoding Fischer, Jan-Philipp" <
jan-philipp.fischer@xxxxxxxxxxxxxx> a écrit :

> 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!
>
> --
> Mailing list: https://launchpad.net/~openerp-connector-community
> Post to     : openerp-connector-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openerp-connector-community
> More help   : https://help.launchpad.net/ListHelp
>
>

References