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

Forbidden — no user agent has been specified in the request #1

Open
berend opened this issue Apr 21, 2019 · 3 comments
Open

Forbidden — no user agent has been specified in the request #1

berend opened this issue Apr 21, 2019 · 3 comments

Comments

@berend
Copy link
Owner

berend commented Apr 21, 2019

There is something wrong with the user agent:

   $ pip install haveibeenpwnd
   ..
   $ haveibeenpwnd -m [email protected]
   Forbidden — no user agent has been specified in the request
@berend
Copy link
Owner Author

berend commented Apr 21, 2019

I checked the user agent, and it looks ok. Since there are a lot of related issues when searching for this, I believe it is a service issue. Since Troy is doing this pro bono, I will watch this for a week - and if it does not disappear, I will try to reach out to him.

Until then - on hold

@vwillcox
Copy link

Just to confirm - I am getting this too.
RaspberryPi is my host

@berend
Copy link
Owner Author

berend commented May 9, 2019

Issue is still valid - I wrote to Troy. Here is a curl, that reproduces the issue:

$ curl -X GET https://haveibeenpwned.com/api/v2/breachedaccount/[email protected] -H 'User-Agent: pypi.org/project/haveibeenpwnd/v0.1'

I assume this maybe be related to Cloudflare caching or that User-Agents need to be whitelisted.

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