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

Bad credentials error #162

Open
chshersh opened this issue Mar 16, 2020 · 0 comments
Open

Bad credentials error #162

chshersh opened this issue Mar 16, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@chshersh
Copy link
Contributor

Sometimes hintman can't submit PR review due to the Bad credentials error:

2020-03-16T19:19:27.090380+00:00 app[web.1]: [Info]    [16-03-2020 19:03:59.796] [Hintman.Download.downloadFile#20] [ThreadId 397] Attempting to download file from https://raw.githubusercontent.com/kowainik/validation-selective/f8b174dcbae4e1784358d8e7fed68c0319311653/src/Validation.hs ...
2020-03-16T19:19:27.090380+00:00 app[web.1]: [Error]   [16-03-2020 19:04:07.842] [Hintman.Comment.submitReview#33] [ThreadId 397] Error submitting review: HTTPError (HttpExceptionRequest Request {
2020-03-16T19:19:27.090380+00:00 app[web.1]: host                 = "api.github.com"
2020-03-16T19:19:27.090381+00:00 app[web.1]: port                 = 443
2020-03-16T19:19:27.090381+00:00 app[web.1]: secure               = True
2020-03-16T19:19:27.090382+00:00 app[web.1]: requestHeaders       = [("User-Agent","github.hs/0.21"),("Accept","application/vnd.github.v3+json"),("Authorization","<REDACTED>")]
2020-03-16T19:19:27.090382+00:00 app[web.1]: path                 = "/repos/kowainik/validation-selective/pulls/30/reviews"
2020-03-16T19:19:27.090382+00:00 app[web.1]: queryString          = ""
2020-03-16T19:19:27.090383+00:00 app[web.1]: method               = "POST"
2020-03-16T19:19:27.090383+00:00 app[web.1]: proxy                = Nothing
2020-03-16T19:19:27.090384+00:00 app[web.1]: rawBody              = False
2020-03-16T19:19:27.090384+00:00 app[web.1]: redirectCount        = 10
2020-03-16T19:19:27.090544+00:00 app[web.1]: responseTimeout      = ResponseTimeoutDefault
2020-03-16T19:19:27.090545+00:00 app[web.1]: requestVersion       = HTTP/1.1
2020-03-16T19:19:27.090545+00:00 app[web.1]: }
2020-03-16T19:19:27.090565+00:00 app[web.1]: (StatusCodeException (Response {responseStatus = Status {statusCode = 401, statusMessage = "Unauthorized"}, responseVersion = HTTP/1.1, responseHeaders = [("Date","Mon, 16 Mar 2020 19:04:07 GMT"),("Content-Type","application/json; charset=utf-8"),("Content-Length","83"),("Server","GitHub.com"),("Status","401 Unauthorized"),("X-GitHub-Media-Type","github.v3; format=json"),("X-RateLimit-Limit","60"),("X-RateLimit-Remaining","54"),("X-RateLimit-Reset","1584386911"),("Access-Control-Expose-Headers","ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"),("Access-Control-Allow-Origin","*"),("Strict-Transport-Security","max-age=31536000; includeSubdomains; preload"),("X-Frame-Options","deny"),("X-Content-Type-Options","nosniff"),("X-XSS-Protection","1; mode=block"),("Referrer-Policy","origin-when-cross-origin, strict-origin-when-cross-origin"),("Content-Security-Policy","default-src 'none'"),("Vary","Accept-Encoding, Accept, X-Requested-With"),("X-GitHub-Request-Id","A83C:2AC73:D5B9E24:FB2AC82:5E6FCDA5")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose}) "{\"message\":\"Bad credentials\",\"documentation_url\":\"https://developer.github.com/v3\"}"

Need to investigate and probably refresh tokens more aggressively.

@chshersh chshersh added the bug Something isn't working label Mar 16, 2020
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

No branches or pull requests

1 participant