Hello everyone! ππ»
I have the following piece of code (client side, Flutter):
TypeScript
databaseId: 'id',
collectionId: 'id',
documentId: '');```
As you might have noticed, I'm passing an empty string as documentId. No such ID exists of course. But yet this code returns a document.
I expect the above code to return an exception. When I pass a random string as ID it indeed throws an exception, as it should be. But not when I pass an empty string (''). π€
Can anyone confirm that this is indeed a bug in Apprite?
TL;DR
Issue: Passing an empty string as documentId in AppWrite's getDocument function returns a document instead of throwing an exception.
Solution: This behavior is likely a bug in AppWrite. Consider reporting it to the developers for further investigation and resolution.Recommended threads
- CORS preflight returns 500 on Dart funct...
Hey everyone π Iβm running a Dart cloud function, Every time I respond to a preflight (OPTIONS) request, I get a 500 internal error, and the logs show: ```NoSu...
- Auto Updating Backend & Auth via Appwrit...
<@870607367597850624> Hey everyone π I wanted to ask to ask for a friend, heβs asking if Appwrite be used in a similar way to Supabase when integrated with AI ...
- execution failed
When executing an appwrite function, I'm getting a 500 error, but I don't see it in executions. This issue appeared today. Here's the appwrite function ID: 68b4...