Skip to content
Back

Getting this error while trying to send email verification from server

  • 0
  • Auth
  • Cloud
aditya_uchihha
26 Jul, 2025, 14:26

Error creating user: app.(my_project_id)@service.nyc.cloud.appwrite.io (role: applications) missing scope (account) while trying to register a new user, and sending them email verification i set this. The user is being registered fine, but when the code runs for verification it gives error. And I also have already activated and enabled all the scopes. here is my code: @app.post("/auth") def create_user(payload: RegisterInput): try:

TypeScript
    # Create the user
    new_user = account.create(
        user_id=ID.unique(),
        email=payload.email,
        password=payload.password,
        name=payload.name
        )
  
    res= account.create_verification(
        url="http://127.0.0.1:8000"
    )


    return {"message": "User created and verification email sent"}
except Exception as e:
    print("Error creating user:", e)
    return JSONResponse(
        status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
        content={"error": str(e)}
    )
TL;DR
Developers are receiving an error while trying to send email verification from the server. The error message indicates that an IP address is not accepted and domain names like abcd.com need to be added. Additionally, there is an error related to missing scope (account) when registering a new user despite having all scopes activated and enabled. The provided code for user creation and email verification is triggering the errors.
Axistro
26 Jul, 2025, 14:34

Url should not be accepted. As this is an Ip. You need to add domain names. Like abcd.com.

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