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
github.GithubException.GithubException: 401 {'message': 'Requires authentication', #1119
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hey, I'm facing the same issue. Did you resolve it or any method you used to get around it? |
LOL, from 2019 to 4 days ago :) I'm having the same problem. You find anything? |
I'm having a similar issue. My scripts used to work, now I get this 401:
|
@kbenzle @mudit-mhjn FYI, I opened a new issue: |
same problem here |
I have the same problem now, is there any solutions? thanks. |
I have the same problem. Any solutions ? |
any solution ? |
I gave up it and changed to another lib called git,so you can run your code in Python just like in git bash.(maybe pip install git, sorry if it's wrong)
…---Original---
From: ***@***.***>
Date: Wed, Nov 3, 2021 13:40 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [PyGithub/PyGithub] github.GithubException.GithubException: 401 {'message': 'Requires authentication', (#1119)
any solution ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
any solution?It is 2024 now😭 |
Hello everyone, sorry I thought I replied to this post. I was able to fix this issue by doing the following. Basically you need to generate access token and pass that through (look at what I am doing for rez and g in this sample code). Once authenticated you should be able to make a call to create an issue. This token will be alive for 10mins but you can alter that if needed. Sorry it took 5 years to post but hope this helps!
|
Are you trying to authenticate an app installation as the user? The current way to do this is show in this example. However, looks like this does not support Github Enterprise: #2766, #2485. Can you please test if #2780 works for you? |
I will try, thanks |
Hello PyGithub Community - First off, thank you for supporting this tool you folks are the best!
Issue: I am attempting to authenticate to github enterprise using client_id and client_secret. I need to leverage PyGithub to post issues. Please let me know if there is a better route I should take, below are the errors I am hitting.
Code:
Error:
Thanks again for all the help!
The text was updated successfully, but these errors were encountered: