Appwrite Node Version: ^13.0.1
I have come across this really strange behavior regarding an updateDocument call where is will append a forward slash to the end of the request resulting in a AppwriteException: The requested route was not found. error.
The frustrating part is it does not do this every time and I can't seem to track down the cause.
Appwrite Call
await DatabaseAPI.db.updateDocument(
"games",
"miniSolves",
userSolve?.$id ?? "",
{
solved: solve.solved,
time: solve.time,
solve: solve.solve,
}
);
Request
Request URL: https://blah/v1/databases/games/collections/miniSolves/documents/
Request Method: PATCH
Status Code: 404 Not Found
The proper request url should not include the trailing /
Appreciate any help in tracking down this issue ❤️
Node .updateDocument() appending / in request
Recommended threads
- I'm getting error Invalid `url` param: I...
``` 2025-10-26T12:52:02.292Z [error] AppwriteException: Invalid `url` param: Invalid URI. Register your new client (vercel.com) as a new Web platform on your pr...
- Unknown column 'sourceSize' in 'field li...
After migrating from 1.6.1 to 1.7.4 I noticed this message in the logs: `appwrite-worker-stats-resources | 2025-10-26T10:32:38.289577112Z Failed: SQLSTATE[...
- Invalid document structure: Missing requ...
After migrating from 1.6.1 to 1.7.4 I noticed this message in the logs: appwrite-worker-audits | 2025-10-26T11:15:24.062537020Z Error processing a...