✨Discover storytelling in the AI age with Pixar's Matthew Luhn at Sanity Connect, May 8th—register now

Troubleshooting "Unauthorized - Session not found" error when deploying GraphQL in Sanity Studio

9 replies
Last updated: Aug 5, 2020
hey all - back after a brief break while working on other things. tried to fire up my studio, and when attempting to deploy graphql i get errors
Error: Request returned HTTP 401

sanity graphql list
gives me this error:
Unauthorized - Session not found.

any ideas?
Aug 5, 2020, 2:23 PM
maybe the session expired but sanity still thinks you're logged in? try
sanity logout
sanity login
Aug 5, 2020, 2:26 PM
are you saying log in/out of the
Aug 5, 2020, 2:26 PM
Oh, I just meant from the CLI regarding the
response for
sanity graphql list
Aug 5, 2020, 2:29 PM
oh, never done that before
Aug 5, 2020, 2:30 PM
how do i do that?
Aug 5, 2020, 2:30 PM
in your studio directory in the terminal just run
sanity login
Aug 5, 2020, 2:31 PM
yep! that was 100% it!
Aug 5, 2020, 2:39 PM
thank you!
Aug 5, 2020, 2:39 PM
awesome, np! 👍
Aug 5, 2020, 2:40 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?