Skip to content
Back

createAnonymousSession fails with error 401

  • 0
  • Self Hosted
  • Auth
  • Flutter
punti_z
20 Dec, 2024, 09:24

Run into something new, while creating a anon user session, I check that current user is null and current session is null and then when I make a anon login request it fails with a 401 and in docker logs i see the following error (screenshot attached) "[Error] Message: Creation of a session is prohibited when a session is active."

I increased the session limit in console to 20 and session length to 7 days but nothing seems to work.. Any ideas ?

TL;DR
Issue: When attempting to create an anonymous user session, the developers encounter a 401 error. To resolve the error 401 when calling createAnonymousSession, ensure current user and session are null before making the request. Check the Docker logs for the error message "[Error] Message: Creation of a session is prohibited when a session is active." Increasing the session limit and length did not solve the issue.
punti_z
20 Dec, 2024, 09:25

createAnonymousSession fails with error 401

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more