
Hello, I am experiencing problems with bulk inserts.
I have a node-appwrite client created like this
` const client = new ServerClient() .setEndpoint(APPWRITE_ENDPOINT!) .setProject(APPWRITE_PROJECT_ID!);
if (jwt) { client.setJWT(jwt); } // const adminClient = getServerAdminClient(jwt);
const accountApi = new ServerAccount(client); const result = { client, databases: new ServerDatabases(client), tables: new ServerTablesDB(client), account: accountApi, }; await appInjection.registerRequestData({ userClient: result }); return result;
`
and then the following code:
`const { tables } = client
await tables.createRow({
databaseId,
tableId: collectionId,
rowId: ID.unique(),
data: toSave[0],
});
await tables.createRows({
databaseId,
tableId: collectionId,
rows: toSave,
});
results.success += batch.length;`
The createRow works, the createRows doesnt, I get this error:
The current user or API key does not have the required scopes to access the requested resource.
What am I doing wrong?

Bulk inserts
Recommended threads
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
- The current user is not authorized to pe...
I'm just getting this error while it was working couple minutes ago, my users have permissions to access and create tables data but on some databases I'm just g...
- Web Console not showing Database Docs, b...
We have a User collection within Database. So Auth::User connects to Database::User. When we signup a user using apple sub, the Database::User is created, alo...
