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

Link to create a personal access token in readme #74

Merged
merged 1 commit into from
Aug 4, 2014
Merged

Link to create a personal access token in readme #74

merged 1 commit into from
Aug 4, 2014

Conversation

d13r
Copy link
Contributor

@d13r d13r commented Aug 3, 2014

If you are using two-factor authentication you can't use your regular password.
I think this is also possible if you're not using it, but haven't checked.
Set scopes to empty value because no scopes are needed, not even the defaults.

If you are using two-factor authentication you can't use your regular password.
I think this is also possible if you're not using it, but haven't checked.
Set scopes to empty value because no scopes are needed, not even the defaults.
@joeyespo
Copy link
Owner

joeyespo commented Aug 4, 2014

Oh, that's fantastic! I didn't know you could simply replace your password with a token.

Thanks, @davejamesmiller :-)

joeyespo added a commit that referenced this pull request Aug 4, 2014
Link to create a personal access token in readme
@joeyespo joeyespo merged commit 28a7ac6 into joeyespo:master Aug 4, 2014
@GabLeRoux
Copy link

GabLeRoux commented Dec 24, 2016

I was getting the following error:

 * Using credentials: GabLeRoux
 * Running on http://localhost:6419/ (Press CTRL+C to quit)
[2016-12-24 01:57:56,181] ERROR in app: Exception on / [GET]
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1641, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1544, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1639, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.5/site-packages/flask/app.py", line 1625, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/lib/python3.5/site-packages/grip/app.py", line 174, in _render_page
    content = self.renderer.render(text, self.auth)
  File "/usr/lib/python3.5/site-packages/grip/renderers.py", line 101, in render
    r.raise_for_status()
  File "/usr/lib/python3.5/site-packages/requests/models.py", line 893, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/markdown/raw
127.0.0.1 - - [24/Dec/2016 01:57:56] "GET / HTTP/1.1" 500 -

Just realized that's indeed because I'm using 2FA

{
  "message": "Must specify two-factor authentication OTP code.",
  "documentation_url": "https://developer.github.com/v3/auth#working-with-two-factor-authentication"
}

Using a token does indeed solve the problem, thanks for sharing :)

@joeyespo
Copy link
Owner

joeyespo commented Jan 2, 2017

@GabLeRoux Thanks for the update 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants