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

Error when logging in locally: Not found - Session with sid ___ not found #115

Open
Svish opened this issue Nov 27, 2022 · 6 comments
Open
Labels
bug Something isn't working triaged

Comments

@Svish
Copy link

Svish commented Nov 27, 2022

I have set up and deployed the Sanity v3+next.js starter, pulled the created git-repo locally, and followed the configuration steps in the readme.

After booting it up locally via npm run dev, I go to http://localhost:3000/studio and I get the Sanity login. Completing the login, I'm then presented with this error page:

image

If I then refresh the page, I seem to get into the studio fine. 🤷‍♂️

@stipsan
Copy link
Member

stipsan commented Nov 28, 2022

How curious 🤔 Some questions to help reproduce:

  • You're using Firefox, right?
  • Is this the first time you've loaded up a Sanity Studio on localhost:3000?

@Svish
Copy link
Author

Svish commented Nov 28, 2022

  • That is indeed FireFox, yes.
  • Previously I've loaded up the Sanity Studio as a separate thing, as was the way with v2, which I believe would load up on localhost:3333, so in that way it is "the first time". But while developing I have of course reloaded the studio multiple times now.

The error seems to happen consistently if I clear out my cookies and session+local storage. I get asked to login, I do that, it crashes, I refresh, and things are fine again. As long as the auth session is good, I can restart the studio and get back into the studio without any crash. Remove the auth session to trigger a new login, and the crash happens again. 🤷‍♂️

@stipsan stipsan added the bug Something isn't working label Nov 28, 2022
@dimkabuzz
Copy link

The same issue for me, too

@dimkabuzz
Copy link

You must allow third-party cookies in your browser settings, at least for your sanity project API URL - [PROJECT_ID].api.sanity.io
That solved my problem.

@Svish
Copy link
Author

Svish commented Dec 20, 2022

You must allow third-party cookies in your browser settings, at least for your sanity project API URL - [PROJECT_ID].api.sanity.io That solved my problem.

They are allowed, as far as I know. And things work fine, except for that initial login when things crash completely. Refresh, and it's good. 🤷‍♂️

@vgeorgiev0
Copy link

You must allow third-party cookies in your browser settings, at least for your sanity project API URL - [PROJECT_ID].api.sanity.io That solved my problem.

They are allowed, as far as I know. And things work fine, except for that initial login when things crash completely. Refresh, and it's good. 🤷‍♂️

I have the same issue. The error is present only on the initial login.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

4 participants