Web Developer
Hello, I'm facing a critical 401 Unauthorized error on my admin panel app and have exhausted all debugging options.
The Problem:
When my React app on localhost makes any request that requires an authenticated session (like account.get() or databases.createDocument()), it fails with a 401 Unauthorized error.
This happens even after a successful account.createEmailSession() call.
What I have verified (my setup is correct):
My Project ID (6863d2f000114af88d7f) and Endpoint (https://fra.cloud.appwrite.io/v1) are 100% correct in my SDK initialization.
I have a Web App platform with the Hostname correctly set to localhost. I have deleted and re-created it.
For databases.createDocument, the Users role has full Create, Read, Update, Delete permissions on the target collection. I have verified this with screenshots.
I have tried multiple browsers, Incognito Mode, and performed Hard Reload + Empty Cache.
The project was created from scratch using Vite.
The platform seems to not recognize my valid user session, always returning 401. This feels like a platform-level anomaly specific to my project. Can you please investigate? Thank you.