Skip to content
Back

Issue while signing up.

  • 0
  • Web
Aditya Chaudhary
6 Jun, 2025, 20:30

Hey, I’m running into an issue right after the setup. I followed the setup instructions and ran docker compose up -d, and while the local server seems to be running, I get a server error when trying to sign up. Is there a dummy/test account available for contributors?

This doesn't seem to help: https://github.com/appwrite/appwrite/issues/8808#issuecomment-2433365910

As Im in signup page itself.

TL;DR
Developers face a 401 Unauthorized error when navigating to sign-in or sign-up pages locally. Subsequently, a 500 Internal Server Error occurs upon submitting the sign-up form. The error originates in the Database.php file at line 3653. The issue is being discussed on GitHub in issue #8808.
Steven
6 Jun, 2025, 20:36

What exactly did you do to setup, sign up, and what is the exact error?

Aditya Chaudhary
6 Jun, 2025, 20:38
Aditya Chaudhary
6 Jun, 2025, 20:40

Here is the some part of error log:

TypeScript
{"message":"User (role: guests) missing scope (account)","code":401,"type":"general_unauthorized_scope","version":"1.7.4","file":"\/usr\/src\/code\/app\/controllers\/shared\/api.php","line":375,"trace":[{"file":"\/usr\/src\/code\/vendor\/utopia-php\/framework\/src\/App.php","line":600,"function":"{closure}","args":[{},{},{},{},{},{"$id":"console","$internalId":"console","name":"Appwrite","$collection":"projects","description":"Appwrite core engine","logo":"","teamId":null,"webhooks":[],"keys":[],"platforms":[{"$collection":"platforms","name":"Localhost","type":"web","hostname":"localhost"},{"$collection":"platforms","name":"Current Host","type":"web","hostname":"localhost"},{"$collection":"platforms","type":"web","name":"localhost","hostname":"localhost"},{"$collection":"platforms","type":"web","name":"appwrite.io","hostname":"appwrite.io"},{"$collection":"platforms","type":"web","name":"*.appwrite.io","hostname":"*.appwrite.io"}],"region":"fra","legalName":"","legalCountry":"","legalState":"","legalCity":"","legalAddress":"","legalTaxId":"","auths":{"mockNumbers":[],"invites":true,"limit":0,"duration":31536000,"sessionAlerts":true},"authWhitelistEmails":[],"authWhitelistIPs":[],"oAuthProviders":{"githubEnabled":true,"githubSecret":"","githubAppid":""}},{},null,["node.js","deno","php","python","ruby","go",".net","dart","kotlin","swift","graphql","rest"],"default",{},null]},{"file":"\/usr\/src\/code\/vendor\/utopia-php\/framework\/src\/App.php","line":826,"function":"execute","class":"Utopia\\App","type":"->","args":[{},{},{}]},
Steven
6 Jun, 2025, 20:40

Why are you running from source? You want to modify the source code?

Steven
6 Jun, 2025, 20:41

Or do you just want to use Appwrite?

Aditya Chaudhary
6 Jun, 2025, 20:42

I want to setup it locally, for contributing.

Steven
6 Jun, 2025, 20:43

Ok

Steven
6 Jun, 2025, 20:43

What happened exactly when you tried to sign up?

Aditya Chaudhary
6 Jun, 2025, 20:53
  1. I run my application locally using Docker Compose.
  2. When navigating to either the sign-in or sign-up page, a request to http://localhost/v1/account fails with a 401 Unauthorized error. The error response is:
TypeScript
{
  "message": "User (role: guests) missing scope (account)",
  "code": 401,
  "type": "general_unauthorized_scope"
}
  1. After submitting the sign-up form, a 500 Internal Server Error occurs. The response includes:
TypeScript
{
  "message": "Server Error",
  "code": 500,
  "type": "general_unknown",
  "version": "1.7.4"
}

The 3rd step error originates in the Database.php file at line 3653, specifically in the createDocument function, as indicated by the stack trace pointing to the account.php controller (line 391).

Steven
6 Jun, 2025, 21:00

well if you aren't logged in yet, the 401 error is expected

Steven
6 Jun, 2025, 21:00

there should be another log entry for the 500 error

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