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
- Seed db
hello there... is this correct way to seed appwrite
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...