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

[Bug]: "Callback handler failed" using cargo shuttle login #697

Closed
1 task done
d2weber opened this issue Mar 8, 2023 · 3 comments
Closed
1 task done

[Bug]: "Callback handler failed" using cargo shuttle login #697

d2weber opened this issue Mar 8, 2023 · 3 comments
Labels
S-Triage Awaiting decision for what to do T-Bug Something isn't working

Comments

@d2weber
Copy link
Contributor

d2weber commented Mar 8, 2023

What happened?

After using cargo shuttle login for the first time, I clicked the button on https://www.shuttle.rs/login and granted permission via Github, then I was redirected to https://www.shuttle.rs/api/auth/callback?code=longcode and got the Message:
Callback handler failed. CAUSE: undefined
Reloading the page gives:
Callback handler failed. CAUSE: Missing state cookie from login request (check login URL, callback URL and cookie config).
Going back to https://www.shuttle.rs/login and clicking the button again worked and I can see the dashboard.

Version

v0.11.2

Which operating systems are you seeing the problem on?

Linux

Which CPU architectures are you seeing the problem on?

x86_64

Relevant log output

Browser logs:
Some cookies are misusing the recommended “SameSite“ attribute 10
Cookie “state” has been rejected because it is already expired. callback
Cookie “_state” has been rejected because it is already expired. callback
Cookie “max_age” has been rejected because it is already expired. callback
Cookie “_max_age” has been rejected because it is already expired. callback
Cookie “code_verifier” has been rejected because it is already expired. callback
Cookie “_code_verifier” has been rejected because it is already expired. callback
Cookie “nonce” has been rejected because it is already expired. callback
Cookie “_nonce” has been rejected because it is already expired. callback
Cookie “response_type” has been rejected because it is already expired. callback
Cookie “_response_type” has been rejected because it is already expired. callback

Duplicate declaration

  • I have searched the issues and there are none like this.
@d2weber d2weber added the T-Bug Something isn't working label Mar 8, 2023
@oddgrd
Copy link
Contributor

oddgrd commented Mar 10, 2023

Thanks for the report! I have seen this before and it seems to be some issue with cookies, but I'm not sure why it happens yet... We're doing some work on the web side of things in the coming weeks, it may become clearer then. 🤞

@jonaro00
Copy link
Member

Things have improved a bit on this front. Login is now done in the Shuttle Console.
@GugaGongadze is this still relevant or can it be closed?

@jonaro00 jonaro00 added the S-Triage Awaiting decision for what to do label Aug 17, 2023
@GugaGongadze
Copy link
Contributor

@jonaro00 This the same exact issue described here:
shuttle-hq/www#71

Seems like latest report was 2 weeks ago.
We can close this issue in favor of the www one as this bug has nothing to do with this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-Triage Awaiting decision for what to do T-Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants