You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
i am trying to access my collections from my node.js backend server via that node-appwrite server sdk but I get the following error:
/Users/agency/Documents/website/testing/node_modules/node-appwrite/lib/client.js:174
throw new AppwriteException(error.response.data.message, error.response.status, error.response.data.type, error.response.data);
^
AppwriteException [Error]: The current user is not authorized to perform the requested action.
at Client.call (/Users/agency/Documents/website/testing/node_modules/node-appwrite/lib/client.js:174:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Databases.createDocument (/Users/agency/Documents/website/testing/node_modules/node-appwrite/lib/services/databases.js:1691:16)
at async createOtpToken (file:https:///Users/agency/Documents/website/testing/app.js:19:27)
at async file:https:///Users/agency/Documents/website/testing/app.js:77:13 {
code: 401,
type: 'user_unauthorized',
response: {
message: 'The current user is not authorized to perform the requested action.',
code: 401,
type: 'user_unauthorized',
version: '0.11.13'
}
}
Node.js v20.7.0
/Users/agency/Documents/website/testing/node_modules/node-appwrite/lib/client.js:174
throw new AppwriteException(error.response.data.message, error.response.status, error.response.data.type, error.response.data);
^
AppwriteException [Error]: The current user is not authorized to perform the requested action.
at Client.call (/Users/agency/Documents/website/testing/node_modules/node-appwrite/lib/client.js:174:31)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Databases.createDocument (/Users/agency/Documents/website/testing/node_modules/node-appwrite/lib/services/databases.js:1691:16)
at async createOtpToken (file:https:///Users/agency/Documents/website/testing/app.js:19:27)
at async file:https:///Users/agency/Documents/website/testing/app.js:77:13 {
code: 401,
type: 'user_unauthorized',
response: {
message: 'The current user is not authorized to perform the requested action.',
code: 401,
type: 'user_unauthorized',
version: '0.11.13'
}
}
Node.js v20.7.0
馃幉 Appwrite version
Appwrite Cloud
馃捇 Operating system
MacOS
馃П Your Environment
Just a flat out local nodejs runtime
馃憖 Have you spent some time to check if this issue has been raised before?
stnguyen90
changed the title
I cannot access my collections with an api key from node.js server馃悰 Bug Report:
馃悰 Bug Report: I cannot access my collections with an api key from node.js server
Oct 23, 2023
@Rosalza, thanks for creating this issue! 馃檹馃徏 As mentioned on Discord, you would get this error if the project ID is incorrect or the API key doesn't have enough scopes. Please check those first.
馃憻 Reproduction steps
Hello,
i am trying to access my collections from my node.js backend server via that
node-appwrite
server sdk but I get the following error:This is my code (example code to test):
馃憤 Expected behavior
Logging the created otpToken in the console.
馃憥 Actual Behavior
Error:
馃幉 Appwrite version
Appwrite Cloud
馃捇 Operating system
MacOS
馃П Your Environment
Just a flat out local nodejs runtime
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: