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:
# 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)}
)
Url should not be accepted. As this is an Ip. You need to add domain names. Like abcd.com.
Recommended threads
- Not able to upgrade to Appwrite Pro
This is my project ID - 69f5bee60036512d2d52 I've tried multiple credit cards now and I still face the same error "Your card was declined". But I've used the s...
- Running into a server error on my self-h...
Hey everyone, I'm running into a server error on my self-hosted setup after updating to v1.19.0. The issue only happens during user creation and deletion. Ever...
- Storage System
Hey guys, quick question regarding massive storage scaling. I’m working in digital forensics and I’m constantly dealing with huge binary disk images, usually be...