Skip to content

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

@asawarijoshi2501

Description

@asawarijoshi2501

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions