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

Error when running `sanity graphql deploy` after being logged out

4 replies
Last updated: Feb 26, 2024
Hey! I can't run
sanity graphql deploy
currently... I am getting this error when I try to run it:

Error: Request returned HTTP 401
    at getUrlHeaders (~/sanity-studio/node_modules/sanity/lib/_chunks/deployApiAction-c71b2e2b.js:61:19)
    at async getCurrentSchemaProps (~/sanity-studio/node_modules/sanity/lib/_chunks/deployApiAction-c71b2e2b.js:1865:17)
    at async Object.deployGraphQLApiAction [as default] (~/sanity-studio/node_modules/sanity/lib/_chunks/deployApiAction-c71b2e2b.js:1693:9)
It was working fine a few days ago. Anyone knows what could be the issue?
Feb 23, 2024, 3:26 PM
What version of the CLI are you using?
Feb 23, 2024, 6:46 PM
3.16.2
Feb 26, 2024, 8:00 AM
I tried upgrading to the latest, but didn't work 😕
Feb 26, 2024, 8:01 AM
Ha! I had been logged out... Would be great with that as the error message 😛
Feb 26, 2024, 8:04 AM

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?