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

[ERROR] urllib.error.URLError urlopen error [Errno 54] Connection reset by peer #143

Open
ratan1st opened this issue Jul 9, 2018 · 2 comments

Comments

@ratan1st
Copy link

ratan1st commented Jul 9, 2018

Hey guys,

So, I've been using the wrapper class for the Amazon Product API (Thanks for the awesome wrapper, by the way) for the last two weeks - and have been using it to get all(!) of Amazon's products for certain categories.

My code has been working fine all this time. But of late, I've been getting this error. From what I've read online - it could possibly mean that Amazon's bot detector is resetting my connection. The solutions online have mentioned I could try including a browser header while making the API call, or using multiple proxies to avoid bot detection.

Is there any way I can include a header while making the API call given that I'm using the wrapper class? Or any other fix for this particular issue? Or does the error mean something entirely different in this case?

(And while we're on the topic, how exactly does the wrapper class make the API calls?)

Thanks

@kdgutier
Copy link

kdgutier commented Jul 9, 2018

I have a similar problem, in my case the API returns 404 from Amazon. But I think that as long as you remain within the boundaries of the Amazon terms of service for the calls there should not be a problem though.

@ratan1st
Copy link
Author

ratan1st commented Jul 9, 2018

I've been through the terms of service and I suppose I'm well within the boundaries. Not really sure what is going on - does Amazon have some sort of bot detection which keeps resetting my connection?

404 is a different kind of error. I just want to know if anybody else here has come across [Error 54]. I'm guessing I will need to know how exactly the wrapper class calls the API to figure this one out. Any insights would be helpful. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants