-
Notifications
You must be signed in to change notification settings - Fork 882
Can't log in, 2FA errors forever #839
Comments
Thanks for the report @indirect. Are you able to check whether Boxen is listed as an authorized application at https://github.com/settings/applications? Could you also provide the version of From the messages above, it looks like something is breaking down at |
@jacobbednarz ah, sorry I should have included versions and such. I did a straight up checkout of a61b60d, and ran I did some print-debugging inside
Nevertheless, it seems like Octokit is raising |
I've taken the following steps:
From what I can guess, the OTP stuff is being caused by one of the following:
|
Ugh. Thanks for checking on this! It working for you is super, super confusing. I'm using the Authy app on my iPhone, and I am able to generate valid OTP tokens and log in to github.com successfully, so I'm super confused about why Octokit can't log in using them. I guess I'll just manually generate a token and stuff it in my netrc and move on. |
If you dump the HTTP request being made, does it line up with your Mac clock (and be within a couple of minutes)? |
@jacobbednarz here's a full dump using the debug instructions from the Octokit readme and some extra debug prints from me (starting with "**"). It seems like Octokit is making a second request, and the second request is raising the exception, even though the first request failed? The only line of ruby code getting run is tmp_api.authorizations(:headers => headers). My best guess about what's happening is that Octokit is following the returned
|
I've tried replicating this for the last few days and I've come up empty 😞 @MikeMcQuaid are you able to take a look at the logs at GitHub for the possible cause here? I'd like to be able to safe guard against but not sure what is actually causing the issue. |
@jacobbednarz Email [email protected] and they'll be able to help more. |
@indirect did you get anywhere with this? I'm happy to make changes within Boxen if there is something we can do better. |
2FA accounts are unable to log in when running
script/server
:Repeat until you get tired and give up. It's an infinite loop.
(Yes, I'm 100% sure my password and token are correct, and I used them to log in to GitHub.com moments before using them in Boxen.)
The text was updated successfully, but these errors were encountered: