You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The AWS.ECommerceService.ItemNotAccessible error seems to be happening for certain ASIN or ISBN values for many API users. But, it is not handled by the python API. To test it, attempt to do a call like this:
**api.item_lookup('192913214X', IdType='ASIN', ResponseGroup="ItemAttributes", SearchIndex="Books", Condition="All")
**
By adding an error type for this, I was able to do a try/except for it. I modified my own local copy to fix it. Here's what I changed to get it working:
errors.py: (inserted at line 16):
'ItemNotAccessible',
errors.py: (inserted at line 174):
class ItemNotAccessible(AWSError):
"""
This item is not accessible through Product Advertising API.
"""
api.py: (inserted at line 270):
'AWS.ECommerceService.ItemNotAccessible': ItemNotAccessible,
Originally reported by Anonymous
The AWS.ECommerceService.ItemNotAccessible error seems to be happening for certain ASIN or ISBN values for many API users. But, it is not handled by the python API. To test it, attempt to do a call like this:
**api.item_lookup('192913214X', IdType='ASIN', ResponseGroup="ItemAttributes", SearchIndex="Books", Condition="All")
**
By adding an error type for this, I was able to do a try/except for it. I modified my own local copy to fix it. Here's what I changed to get it working:
errors.py: (inserted at line 16):
'ItemNotAccessible',
errors.py: (inserted at line 174):
class ItemNotAccessible(AWSError):
"""
This item is not accessible through Product Advertising API.
"""
api.py: (inserted at line 270):
'AWS.ECommerceService.ItemNotAccessible': ItemNotAccessible,
The text was updated successfully, but these errors were encountered: