"Login to GitHub" produces "Failure 405 Method Not Allowed..."

Running Upsource 2018.1.584

I log into Upsource using the GitHub icon underneath the login form. That works fine.

When I go to the project page and click "Login to GitHub" at the top, right corner of the white box, I get a popup window with this error:

Failure: 405 Method Not Allowed Parameter "state" is invalid: 4cf5edd1-4e61-4fa1-b9dc-130db17ab9ac

logs/upsource-frontend/all.log contains stuff like this:

[2018-09-27 18:24:19,318] WARN 13 @coroutine#247220 y.requests.UpsourceHttpRequest - No session id found for: /~oauth/github?userId=b18eb210-54a3-48b2-9e83-02af58dd6780 request. Return empty session
[2018-09-27 18:24:19,345] INFO 13 @coroutine#247220 andlers.oauth.BaseOAuthHandler - Starting web-flow. scope=null. Redirecting user to https://upsource.mydomain.com/hub/api/rest/oauth2/7e6d4a94-0f51-4abf-90e6-8177a433fff0/proxy?client_id=d106cdef-2f47-44a4-97ec-87dcecd72046&scope=public_repo+repo&state=0e2ae73e-6c94-40ac-b83d-2003b10c2422&redirect_uri=https%3A%2F%2Fupsource.mydomain.com%2F%7Eoauth%2Fgithub
[2018-09-27 18:24:20,573] INFO 22 @coroutine#247226 andlers.oauth.BaseOAuthHandler - Completing web-flow. state=0e2ae73e-6c94-40ac-b83d-2003b10c2422
[2018-09-27 18:24:20,573] WARN 22 @coroutine#247226 y.requests.UpsourceHttpRequest - No session id found for: /~oauth/github?state=0e2ae73e-6c94-40ac-b83d-2003b10c2422&access_token=3f08ee9d29ecc6d8b07ad67cafc5164b9b34d539 request. Return empty session
[2018-09-27 18:24:20,574] WARN 22 @coroutine#247226 andlers.oauth.BaseOAuthHandler - Parameter "state" is invalid: 0e2ae73e-6c94-40ac-b83d-2003b10c2422

-- Art Z.

1 comment
Comment actions Permalink

This was caused by bad data stored in the browser. I cleared the browser cache and deleted cookies and local storage. 

-- Art Z.

0

Please sign in to leave a comment.