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
apio install client forbidden https #163
Comments
Hi. Is this happening when you install other packages? Have you tried different networks? What version of Python are you using? Thanks. |
On 08/15/18 02:19, Jesús Arroyo Torrens wrote:
Hi. Is this happening when you install other packages?
all the apio install <xyz> attempts fail with the same error.
Have you tried different networks?
as in different home locations? No. What I have done is install on a
different computer when this problem did not occur. That suggests the problem
is local to my specific workstation.
What version of Python are you using?
2.7 and 3.5 have been tried.
Using python interactively:
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170118] on linux
Type "help", "copyright", "credits" or "license" for more information.
>> import requests
>> requests.get('https://github.com')
<Response [200]>
>> requests.get('https://api.github.com')
<Response [403]>
So it's something to do with api.github.com
Any ideas?
Dick
|
I tried the same tests:
Maybe you can execute |
On 08/15/18 20:46, Jesús Arroyo Torrens wrote:
Resolved. It took a while to track down. It was due to a 'default' entry in
~/.netrc which *overrides* the 'Authorization' header in the request.
It seems to me that that is a defect in python-requests but I've read
discussions where that is debated
(psf/requests#3929).
Maybe you can execute |requests.get('https://api.github.com').json()| to get
more information about the error in your machine.
The symptom was http error 403 "Maximum number of login attempts exceeded.
Please try again later". github issue that error and message for
authentication failures.
FYI the headers can be seen with:
import requests
r=requests.get('https://api.github.com')
r.request.headers
Thanks for your help
|
Great. Congrats! |
@nottledim Thanks for this! I found ~/.netrc from 2005 (three ISPs ago). Delete; all is well. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to run "apio install system" but it complains: Error: 403 Client Error: Forbidden for url: https://api.github.com/repos/FPGAwars/tools-system/releases
I can download that URL with browser. I assume this is a certificate verification issue but it's not clear to me what's wrong.
Could somebody help me debug this please.
Debian GNU/Linux "stretch"
The text was updated successfully, but these errors were encountered: