Back

[SOLVED] AppwriteException: The requested route was not found

  • 0
  • Web
  • Cloud
dayo
6 Mar, 2025, 15:39

my appwrite appwrite request a suddenly failing, they were working before, database getDocument, createDocument all failing - AppwriteException: The requested route was not

AppwriteException: The requested route was not found. Please refer to the API docs and try again.

TL;DR
AppwriteException: The requested route was not found. Issue was due to missing environmental variables when running function locally. Ensure proper API URL is defined in the appwrite client settings.
dayo
6 Mar, 2025, 15:43

the code was working just few mins ago @Support , please can you assist, it urgent impacting my consumers

faye
6 Mar, 2025, 15:50

do you have a proper api url for the sdk?

faye
6 Mar, 2025, 15:50
dayo
6 Mar, 2025, 15:52
faye
6 Mar, 2025, 15:53

what does your appwrite client look like?

dayo
6 Mar, 2025, 15:57

thanks, i know the issue, i am running the function locally, so when i pull it, i forgot to edit the remain env. only api url was defined const appwriteBaseUrl = process.env.APPWRITEBASEURL || 'https://cloud.appwrite.io/v1'; const projectId = process.env.APPWRITE_PROJECTID || ''; const databaseId = process.env.APPWRITE_DATABASEID || ''; const collectionId = process.env.APPWRITE_COLLECTIONID || ''; const appwriteApikey = process.env.APPWRITE_DB_APIKEY || '';

faye
6 Mar, 2025, 15:58

that makes sense, so your issue is fixed?

dayo
6 Mar, 2025, 15:58

yes

faye
6 Mar, 2025, 15:58

Great!

faye
6 Mar, 2025, 15:58

[SOLVED] AppwriteException: The requested route was not found

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