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

Octokit.AuthorizationException: Bad credentials #64

Closed
ZeWaka opened this issue Jul 24, 2020 · 5 comments · Fixed by #65
Closed

Octokit.AuthorizationException: Bad credentials #64

ZeWaka opened this issue Jul 24, 2020 · 5 comments · Fixed by #65
Labels
bug Something isn't working

Comments

@ZeWaka
Copy link

ZeWaka commented Jul 24, 2020

This keeps happening a lot on goon for the past month or so. Happens for MapdiffBot as well.

Error:

Octokit.AuthorizationException: Bad credentials
   at Octokit.Connection.HandleErrors(IResponse response) in C:\projects\octokit-net\Octokit\Http\Connection.cs:line 665
   at Octokit.Connection.RunRequest(IRequest request, CancellationToken cancellationToken) in C:\projects\octokit-net\Octokit\Http\Connection.cs:line 643
   at Octokit.Connection.Run[T](IRequest request, CancellationToken cancellationToken) in C:\projects\octokit-net\Octokit\Http\Connection.cs:line 628
   at Octokit.ApiConnection.Get[T](Uri uri, IDictionary`2 parameters) in C:\projects\octokit-net\Octokit\Http\ApiConnection.cs:line 72
   at IconDiffBot.Core.GitHubManager.GetFileAtCommit(Int64 repositoryId, Int64 installationId, String filePath, String commit, CancellationToken cancellationToken) in /hosting/services/idb-building/IconDiffBot/Core/GitHubManager.cs:line 150
   at IconDiffBot.Core.PayloadProcessor.<>c__DisplayClass12_1.<<GenerateDiffs>g__GetImageFor|2>d.MoveNext() in /hosting/services/idb-building/IconDiffBot/Core/PayloadProcessor.cs:line 245
--- End of stack trace from previous location where exception was thrown ---
   at IconDiffBot.Core.PayloadProcessor.<>c__DisplayClass12_0.<<GenerateDiffs>g__DiffDmi|0>d.MoveNext() in /hosting/services/idb-building/IconDiffBot/Core/PayloadProcessor.cs:line 259
--- End of stack trace from previous location where exception was thrown ---
   at IconDiffBot.Core.PayloadProcessor.GenerateDiffs(PullRequest pullRequest, Int64 installationId, Int64 checkRunId, IReadOnlyList`1 changedDmis, IServiceScope scope, CancellationToken cancellationToken) in /hosting/services/idb-building/IconDiffBot/Core/PayloadProcessor.cs:line 315
   at IconDiffBot.Core.PayloadProcessor.<>c__DisplayClass11_0.<<ScanPullRequestImpl>g__RunCheck|0>d.MoveNext() in /hosting/services/idb-building/IconDiffBot/Core/PayloadProcessor.cs:line 157
--- End of stack trace from previous location where exception was thrown ---
   at IconDiffBot.Core.PayloadProcessor.ScanPullRequestImpl(Int64 repositoryId, Int32 pullRequestNumber, Int64 installationId, IServiceScope scope, CancellationToken cancellationToken) in /hosting/services/idb-building/IconDiffBot/Core/PayloadProcessor.cs:line 166
{"message":"Bad credentials","documentation_url":"https://developer.github.com/v3"}

Failed check run:
https://github.com/goonstation/goonstation/pull/1594/checks?check_run_id=906278442
Similar but shorter stack trace here:
https://github.com/goonstation/goonstation/pull/1583/checks?check_run_id=902526522

@AffectedArc07
Copy link
Member

I am well aware of this issue and it has been plaguing me for a while. Fix is unknown, so ill have to see if updating libs works. The fact this is spurious is hurting me.

@AffectedArc07 AffectedArc07 pinned this issue Jul 24, 2020
@AffectedArc07 AffectedArc07 added the bug Something isn't working label Jul 24, 2020
@Cyberboss
Copy link
Member

Ohhhhh I think I may know the issue

https://github.com/tgstation/IconDiffBot/blob/master/IconDiffBot/Core/GitHubManager.cs#L66

This 10 should be -1 I was trying to adjust for clock skew and fucked up horribly.

Cyberboss added a commit that referenced this issue Jul 24, 2020
@AffectedArc07 AffectedArc07 reopened this Jul 25, 2020
@AffectedArc07
Copy link
Member

@Maldaris
Copy link

@ZeWaka
Copy link
Author

ZeWaka commented Jan 20, 2022

Hasn't occurred in a long time for us.

@ZeWaka ZeWaka closed this as completed Aug 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants