Skip to content
Back

session client not allowed to create documents

  • 0
  • Databases
  • Cloud
Nove1398 [876 Gaming]
28 Jun, 2025, 13:34

Hello all!

So my issue is that I keep getting ERROR Error creating invitation: The requested service is disabled. You can enable the service from the Appwrite console. When trying to use a session client to run the following createDocument(...)

This is how i construct my client now

TypeScript
    .setEndpoint(this.config.public.appwriteUrl)        .setProject(this.config.public.appwriteProjectId);

    if (sessionToken) {
        client.setSession(sessionToken);    
    }
Const databases = new Databases(client);

then with the created Databases object I do the following: databases!.createDocument(...) . I have observed 2 things, 1 this fails and I had logged the sessionToken to ensure something was present, secondly when I use the admin client with API Key the same process works. I know I am missing something but I am not sure what that is.

TL;DR
Issue: Developer encountering error when using session client to create documents, receiving "The requested service is disabled" message. Works with admin client and API Key. Solution: The error indicates a service is disabled. Enable the service from the Appwrite console. Check that the sessionToken is correct in the session client setup.
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