Fix error while login
We got this error in version 0.55.1 :
java.lang.IllegalStateException: [GET https://www.0crat.com/?PsByFlag=PsGithub&code=<code>] failed in 223ms: HTTP response status is not equal to 200:
400 Bad Request [https://api.github.com/user?access_token=<token>]
X-RateLimit-Resource: core
Server: GitHub.com
Access-Control-Allow-Origin: *
X-RateLimit-Used: 1
X-Content-Type-Options: nosniff
X-RateLimit-Reset: 1638801015
Date: Mon, 06 Dec 2021 13:30:15 GMT
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
X-Frame-Options: deny
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
X-RateLimit-Remaining: 59
X-GitHub-Media-Type: github.v3
Content-Security-Policy: default-src 'none'
Vary: Accept-Encoding, Accept, X-Requested-With
X-RateLimit-Limit: 60
X-XSS-Protection: 0
Content-Length: 230
X-GitHub-Request-Id: <id>
Content-Type: application/json; charset=utf-8
Hi,
I tried to join Zerocracy and I can't because of this issue which occurs immediately after login. Can someone take care of this? Or is it any other way to join Zerocracy?
Thanks,
Tiberiu
Hi!
I've got same issue when I'm trying to login. Browser: Chrome 96.0.4664.110 But seems like this issue is duplicate of https://github.com/zerocracy/farm/issues/2315
Thanks, Zakhar.
+
same problem
Hi I have this problem too

Browser: Chrome 102.0.5005.61
Hello, i want login too!
Internal application error
1.0-SNAPSHOT, 97d425378
Please, report it here. We will do our best to fix it as soon as possible. We're very sorry.
java.lang.IllegalStateException: [GET https://www.0crat.com/?PsByFlag=PsGithub&code=ee5723e477e00ea8974c] failed in 243ms: HTTP response status is not equal to 200: 400 Bad Request [https://api.github.com/user?access_token=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] X-RateLimit-Resource: core Server: GitHub.com Access-Control-Allow-Origin: * X-RateLimit-Used: 2 X-Content-Type-Options: nosniff X-RateLimit-Reset: 1667735332 Date: Sun, 06 Nov 2022 10:53:19 GMT Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin X-Frame-Options: deny Strict-Transport-Security: max-age=31536000; includeSubdomains; preload Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset X-RateLimit-Remaining: 58 X-GitHub-Media-Type: github.v3 Content-Security-Policy: default-src 'none' Vary: Accept-Encoding, Accept, X-Requested-With X-RateLimit-Limit: 60 X-XSS-Protection: 0 Content-Length: 230 X-GitHub-Request-Id: BDD0:6743:3459A2B:6BF7482:6367921F Content-Type: application/json; charset=utf-8
{"message":"Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param","documentation_url":"https://docs.github.com/v3/#oauth2-token-sent-in-a-header"} Expected: HTTP response with status 200 but: was <400 Bad Request [https://api.github.com/user?access_token=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] X-RateLimit-Resource: core Server: GitHub.com Access-Control-Allow-Origin: * X-RateLimit-Used: 2 X-Content-Type-Options: nosniff X-RateLimit-Reset: 1667735332 Date: Sun, 06 Nov 2022 10:53:19 GMT Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin X-Frame-Options: deny Strict-Transport-Security: max-age=31536000; includeSubdomains; preload Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset X-RateLimit-Remaining: 58 X-GitHub-Media-Type: github.v3 Content-Security-Policy: default-src 'none' Vary: Accept-Encoding, Accept, X-Requested-With X-RateLimit-Limit: 60 X-XSS-Protection: 0 Content-Length: 230 X-GitHub-Request-Id: BDD0:6743:3459A2B:6BF7482:6367921F Content-Type: application/json; charset=utf-8
{"message":"Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param","documentation_url":"https://docs.github.com/v3/#oauth2-token-sent-in-a-header"}> at org.takes.facets.fallback.TkFallback.error(TkFallback.java:234) at org.takes.facets.fallback.TkFallback.route(TkFallback.java:115) at org.takes.facets.fallback.TkFallback.access$000(TkFallback.java:54) at org.takes.facets.fallback.TkFallback$1.act(TkFallback.java:66) at org.takes.tk.TkWrap.act(TkWrap.java:61) at org.takes.tk.TkSslOnly.act(TkSslOnly.java:71) at org.takes.tk.TkWrap.act(TkWrap.java:61) at org.takes.http.BkBasic.print(BkBasic.java:108) at org.takes.http.BkBasic.accept(BkBasic.java:84) at org.takes.http.BkSafe$1.accept(BkSafe.java:51) at org.takes.http.BkWrap.accept(BkWrap.java:52) at org.takes.http.BkTimeable.accept(BkTimeable.java:89) at org.takes.http.BkParallel$1$1.run(BkParallel.java:89) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.AssertionError: HTTP response status is not equal to 200: 400 Bad Request [https://api.github.com/user?access_token=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] X-RateLimit-Resource: core Server: GitHub.com Access-Control-Allow-Origin: * X-RateLimit-Used: 2 X-Content-Type-Options: nosniff X-RateLimit-Reset: 1667735332 Date: Sun, 06 Nov 2022 10:53:19 GMT Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin X-Frame-Options: deny Strict-Transport-Security: max-age=31536000; includeSubdomains; preload Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset X-RateLimit-Remaining: 58 X-GitHub-Media-Type: github.v3 Content-Security-Policy: default-src 'none' Vary: Accept-Encoding, Accept, X-Requested-With X-RateLimit-Limit: 60 X-XSS-Protection: 0 Content-Length: 230 X-GitHub-Request-Id: BDD0:6743:3459A2B:6BF7482:6367921F Content-Type: application/json; charset=utf-8
{"message":"Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param","documentation_url":"https://docs.github.com/v3/#oauth2-token-sent-in-a-header"} Expected: HTTP response with status 200 but: was <400 Bad Request [https://api.github.com/user?access_token=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] X-RateLimit-Resource: core Server: GitHub.com Access-Control-Allow-Origin: * X-RateLimit-Used: 2 X-Content-Type-Options: nosniff X-RateLimit-Reset: 1667735332 Date: Sun, 06 Nov 2022 10:53:19 GMT Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin X-Frame-Options: deny Strict-Transport-Security: max-age=31536000; includeSubdomains; preload Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset X-RateLimit-Remaining: 58 X-GitHub-Media-Type: github.v3 Content-Security-Policy: default-src 'none' Vary: Accept-Encoding, Accept, X-Requested-With X-RateLimit-Limit: 60 X-XSS-Protection: 0 Content-Length: 230 X-GitHub-Request-Id: BDD0:6743:3459A2B:6BF7482:6367921F Content-Type: application/json; charset=utf-8
{"message":"Must specify access token via Authorization header. https://developer.github.com/changes/2020-02-10-deprecating-auth-through-query-param","documentation_url":"https://docs.github.com/v3/#oauth2-token-sent-in-a-header"}> at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) at com.jcabi.http.response.RestResponse.assertStatus(RestResponse.java:111) at org.takes.facets.auth.social.PsGithub.fetch(PsGithub.java:154) at org.takes.facets.auth.social.PsGithub.enter(PsGithub.java:131) at org.takes.facets.auth.PsByFlag.enter(PsByFlag.java:107) at org.takes.facets.auth.PsChain.enter(PsChain.java:70) at org.takes.facets.auth.TkAuth.act(TkAuth.java:86) at org.takes.tk.TkWrap.act(TkWrap.java:61) at org.takes.facets.flash.TkFlash.act(TkFlash.java:108) at org.takes.tk.TkGzip$1.act(TkGzip.java:58) at org.takes.tk.TkWrap.act(TkWrap.java:61) at org.takes.tk.TkMeasured$1.act(TkMeasured.java:67) at org.takes.tk.TkWrap.act(TkWrap.java:61) at org.takes.tk.TkVersioned$1.act(TkVersioned.java:73) at org.takes.tk.TkWrap.act(TkWrap.java:61) at org.takes.tk.TkWithHeaders$1.act(TkWithHeaders.java:71) at org.takes.tk.TkWrap.act(TkWrap.java:61) at org.takes.facets.fallback.TkFallback.route(TkFallback.java:86) ... 14 more