Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Bug Report: response prop of AppwriteException declares string, but the response is actually an object #1017

Open
stnguyen90 opened this issue Dec 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@stnguyen90
Copy link
Contributor

The response prop of AppwriteException declares string, but the response is actually an object in version 1.6.0: https://github.com/appwrite/sdk-for-node/blob/7a2418cafaf3cff4247b2e8d9c106e1ab7e9288b/src/client.ts#L23

response: {
    message: 'Invalid token passed in the request.',
    code: 401,
    type: 'user_invalid_token',
    version: '1.6.0'
  }

Originally posted by @hadnet in #73

@stnguyen90 stnguyen90 changed the title response prop of AppwriteException declares string, but the response is actually an object 🐛 Bug Report: response prop of AppwriteException declares string, but the response is actually an object Dec 13, 2024
@stnguyen90 stnguyen90 transferred this issue from appwrite/sdk-for-node Dec 13, 2024
@stnguyen90 stnguyen90 added the bug Something isn't working label Dec 13, 2024
@stnguyen90
Copy link
Contributor Author

response might need to be an object OR string just in case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant