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

401 bad credentials , cannot find org, error not clear #4

Open
asawarijoshi2501 opened this issue Jun 10, 2020 · 0 comments
Open

401 bad credentials , cannot find org, error not clear #4

asawarijoshi2501 opened this issue Jun 10, 2020 · 0 comments

Comments

@asawarijoshi2501
Copy link

asawarijoshi2501 commented Jun 10, 2020

While trying to connect to my organization, I am facing the following issue :

the organization exists here , organization also has a repository.
tried passing creds thorugh files , still getting the same error , PLEASE HELP!!!
$pygrade init --org introtodevopscourse -r https://github.com/IntroToDevopsCourse/devopsproject -s students.tsv -u <username_in_plain_text> -p <password_in_plain_text>

missing github_repo for OrderedDict([('Student ID=765552', 'Name=test student 1')])
 missing github_repo for OrderedDict([('Student ID=765552', 'github_id=asawari44')])
 missing github_repo for OrderedDict([('Student ID=765552', 'github_repo=https://github.com/asawarijoshi2501/asawari44')])
>>> cannot find org named introtodevopscourse
401 Bad credentials
Traceback (most recent call last):
 File "/usr/local/lib/python3.6/dist-packages/pygrade/init.py", line 84, in create_repos_and_teams
   org = [o for o in github.me().organizations() if os.path.basename(o.url) == org_name][0]
 File "/usr/local/lib/python3.6/dist-packages/github3/decorators.py", line 31, in auth_wrapper
   return func(self, *args, **kwargs)
 File "/usr/local/lib/python3.6/dist-packages/github3/github.py", line 1468, in me
   json = self._json(self._get(url), 200)
 File "/usr/local/lib/python3.6/dist-packages/github3/models.py", line 156, in _json
   raise exceptions.error_for(response)
github3.exceptions.AuthenticationFailed: 401 Bad credentials
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

1 participant