Skip to content

Missing AWS Error type - AWS.ECommerceService.ItemNotAccessible #55

@redtoad

Description

@redtoad

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,


Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions