I'm trying to import database data via CSV via API, however getting "The current user is not authorized to perform the requested action." after the API key has "migrations.write" access. (This was erroring/checked prior to adding the permission to the key)
e.g.
await client.call("POST", new URL("https://appwrite.domain.com/v1/migrations/csv"), {
"content-type": "application/json"
}, {
bucketId: "dbBootData",
fileId: "trees.csv",
resourceId: prod:trees,
internalFile: true
})
Import CSV via API (User Not Authorized)
Appwrite 1.8.0 (Self Hosted)
Checking the code, you need isPrivilegedUser aka (USER_ROLE_OWNER, USER_ROLE_DEVELOPER, or USER_ROLE_ADMIN) How can I get a node-sdk to have this role?
Turning off "internalFile" made it work
Recommended threads
- I'm getting an error on the console "j?....
On my self hosted instance version 1.8.1 the console is giving me this error when trying to view the rows for a table I recently created. My application is read...
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...
- Database Write Limits hit
Hello Appwrite Admins, I'm a GitHub Education user, and about a week ago, my database was really badly optimized, resulting in about 600k writes in a single day...