There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in practice, it is actually an object, as evidenced by the following logged output:
{
name: 'AppwriteException',
code: 404,
type: 'document_not_found',
response: {
message: 'Document with the requested ID could not be found.',
code: 404,
type: 'document_not_found',
version: '1.6.1',
},
}
This mismatch between the type definition and the actual runtime behavior can lead to type-related issues in TypeScript projects.
Recommended threads
- How to Ensure a User Can Only Access, Ad...
Hi everyone, I'm building an app using Appwrite, and I'm working on a feature where users can store their favorite items in a "Favorites" collection. Each favo...
- User didn't delete from authentication
I just removed the user (OAuth using Google provider) manually from the auth tab, and when I tried to log in again from my web I got the error in the first pict...
- The current user is not authorized to pe...
This seems to be occurring when accessing a document with relationships to other documents that have document security on. `const udb = await databases.getDocu...