Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
redtoad opened this issue Jul 24, 2014 · 1 comment
Open

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

redtoad opened this issue Jul 24, 2014 · 1 comment
Labels
0.2.8 enhancement New feature or request minor
Milestone

Comments

@redtoad
Copy link
Owner

redtoad commented Jul 24, 2014

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,


@redtoad
Copy link
Owner Author

redtoad commented Jul 24, 2014

Original comment by Sebastian Rahlf (Bitbucket: basti, GitHub: basti)


Well spotted! Send me a pull request then I'll include your change.

@redtoad redtoad added minor enhancement New feature or request 0.2.8 labels Jul 9, 2018
@redtoad redtoad added this to the 0.3 milestone Jul 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.2.8 enhancement New feature or request minor
Projects
None yet
Development

No branches or pull requests

1 participant