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
- RowList: The value of total is coming as...
RowList: The value of total is coming as a String, so it throws an error because it’s not parsed into an int. Error: TypeError: \"37\": type 'String' is not a ...
- Auth broken after update from 1.8.0 to 1...
So ive been having issues creating, deleting or updating users on my appwrite instance after i updated from 1.8.0 to version 1.9.0. When trying to create a user...
- User Blocked - False Positive
Today I tried to log in to my cloud console and it said the user is blocked and I didn't even receive any email regarding this like what kind of violation is my...