Back

Custom Token Error: User with the requested ID could not be found.

  • 0
  • Self Hosted
  • Functions
Spiele
13 Apr, 2024, 14:39

When running the function it returns ”Error: User with the requested ID could not be found.”, according to the docs it should create a new user "If the provided user ID has not be registered, a new user will be created."

Function Code: https://text.is/KLKW

Error: User with the requested ID could not be found. at new AppwriteException (/usr/local/server/src/function/node_modules/node-appwrite/lib/exception.js:3:9) at <anonymous> (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:101:36)

TL;DR
Custom token function is not creating new users as expected, resulting in error "User with the requested ID could not be found." Check the function code and ensure it is correctly handling the creation of new users.
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