DEV Community

Cover image for Sanity CMS Error: Failed to communicate with the Sanity API

Sanity CMS Error: Failed to communicate with the Sanity API

Graeme T-Gill on June 27, 2021

I’ve recently started using the Sanity Content Management System and came across a particular error. Running $sanity init in my studio folder I en...
Collapse
 
jasoncruzdev profile image
Jason Cruz

Wow i cant believe this worked for me, thanks a million!

Collapse
 
mizanur919 profile image
Md. Mizanur Rahaman

thanks
It works

Collapse
 
marksikaundi profile image
Mark Sikaundi

this really helping Thanks

Collapse
 
bahmanworld profile image
Bahman World • Edited

even sanity logout doesn't work for me.
Is there another way to logout?

Failed to communicate with the Sanity API:
POST-request to https://api.sanity.io/v1/auth/logout resulted in HTTP 403 Forbidden
Enter fullscreen mode Exit fullscreen mode
Collapse
 
graemetg profile image
Graeme T-Gill

It may have changed now - I haven't tried it recently.

Collapse
 
jordanmiguel profile image
Jordan Miguel

Thanks mate, I just stumbled across the exact error!

Collapse
 
graemetg profile image
Graeme T-Gill

That's great I'm glad it helped you out!

Collapse
 
lordvic4real profile image
lordvic4real

thanks so much

Collapse
 
graemetg profile image
Graeme T-Gill

So pleased this is helping people.

Collapse
 
conorgaughan profile image
conor-gaughan

Thank you!

Collapse
 
bnsddk profile image
Omar

Thanks, worked for me too

Collapse
 
huzaifachaudary profile image
HuzaifaChaudary

YES It woked for me