Skip to content

2-factor auth #4

@adam000

Description

@adam000

My GitHub account has 2-factor authentication, which causes this program to fail:

Traceback (most recent call last):
  File "/usr/bin/github-pr-stats", line 79, in <module>
    note_url='https://github.com/xiongchiamiov/github-pr-stats')
  File "/usr/lib/python2.6/site-packages/github3/api.py", line 34, in authorize
    client_secret)
  File "/usr/lib/python2.6/site-packages/github3/github.py", line 118, in authorize
    json = self._json(ses.post(url, data=dumps(data)), 201)
  File "/usr/lib/python2.6/site-packages/github3/models.py", line 86, in _json
    if self._boolean(response, status_code, 404) and response.content:
  File "/usr/lib/python2.6/site-packages/github3/models.py", line 107, in _boolean
    raise GitHubError(response)
github3.models.GitHubError: 401 Must specify two-factor authentication OTP code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions