question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTP Error 400 when viewing CA region

See original GitHub issue

When I try looking up a product on US it works. But when I try to set the region to CA It returns even if the ItemID does exist on amazon.ca:

urllib.error.HTTPError: HTTP Error 400: Bad Request

If I test on other regions, it also still works. (assuming the id is valid) So it appears to only not work on canada.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
TheHippocommented, Nov 18, 2016

@inesafmartins You profiles says you are from Portugal. You need to change the region to one that fits your Product Advertising Account.

Associate tags end in:

  • North America end with -20
  • Europe end with -21
  • Japan end with -22

For me as a German:

amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG, region="DE")
1reaction
madtyncommented, Nov 20, 2017

I’d like this feature as well. I’m getting a HTTP 400 Bad request, but no clue. I’ve set Region=‘ES’, my associate tag is right and working in the Amazon Scratchpad API page and tried to set my location/timezone in Ubuntu. No solution yet

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a 400 Bad Request Error (Causes and Fixes) - Kinsta
The HTTP error 400 can occur due to incorrectly typed URL, malformed syntax, or a URL that contains illegal characters.
Read more >
What is HTTP error 400 and how do you fix it? - IT PRO
A 400 Bad Request error is usually a client-side error. A good case in point is a URL string syntax error. Incorrectly typed...
Read more >
HTTP 400 Error Using Microsoft Edge - Microsoft Community
The ''HTTP 400'' error is an HTTP [Hyper Text Transfer Protocol] status code that means that the request you sent to the website...
Read more >
400 Bad Request - SSL Certificate Error | Apigee Edge
This error is thrown if the client's CA signed root certificate is missing in the truststore of Edge's router. Edge Private and Public...
Read more >
HTTP Error 400 Bad Request: What It Is and How to Fix It
The HTTP error 400 Bad Request is a client-side error that can happen when you visit a website. Learn more about the common...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found