Closed ldzhjn closed 5 years ago
@ldzhjn sure? i just opened this issue https://github.com/yoavaviram/python-amazon-simple-product-api/issues/152 i think only it, es and fr works. if you are sure that DE is also warking, there should be something difference
I registered an amazon Japan associate account recently. When I try to get produce information using the below code, I got urllib.error.HTTPError: HTTP Error 503: Service Unavailable exception.
amazon_jp = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG, region="JP") product = amazon_jp.lookup(ItemId=ID)
The detailed exception is
Traceback (most recent call last): File "", line 1, in
File "/usr/local/lib/python3.7/site-packages/amazon/api.py", line 174, in lookup
response = self.api.ItemLookup(ResponseGroup=ResponseGroup, *kwargs)
File "/usr/local/lib/python3.7/site-packages/bottlenose/api.py", line 274, in call
{'api_url': api_url, 'cache_url': cache_url})
File "/usr/local/lib/python3.7/site-packages/bottlenose/api.py", line 235, in _call_api
return urllib2.urlopen(api_request, timeout=self.Timeout)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(args)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 503: Service Unavailable
Other regions like IT and DE works fine.