Rank 1: Thread
Good day, I am wondering how stable appwrite functions are. I am running the same function on every team creation and sometimes it creates everything fine, sometimes it does not execute properly. This function should execute every time a team is created.
This is the errors I get sometimes:
Error: Server Error
at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:172:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Databases.createCollection (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/databases.js:239:16)
at async Module.default (file:///usr/local/server/src/function/src/main.js:117:33)
at async execute (/usr/local/server/src/server.js:141:22)
at async /usr/local/server/src/server.js:158:13
I got this in the logs once it is not an error but the function did not execute fully:
Unsupported logs detected. Use context.log() or context.error() for logging.
AppwriteException [Error]: Server Error
at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:172:31)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Databases.createBooleanAttribute (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/databases.js:427:16) {
code: 500,
type: 'general_unknown',
response: {
message: 'Server Error',
code: 500,
type: 'general_unknown',
version: '1.4.13'
}
}
the function code is in the attachment. I am just wondering why if works sometimes but does not sometimes, and I am not changing anything about how I am creating the team.
Thanks