Hi, when i try to create a new function this happens:
CMD LOG (WINDOWS): C:\PROJECT_PATH\appwrite>appwrite --verbose init function ? What would you like to name your function? test ? What ID would you like to have for your function? unique() ? What runtime would you like to use? Node.js (node-16.0) AppwriteException [Error]: Server Error at Client.call (C:\Users\MY_USER\AppData\Roaming\npm\node_modules\appwrite-cli\lib\client.js:209:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async functionsCreate (C:\Users\MY_USER\AppData\Roaming\npm\node_modules\appwrite-cli\lib\commands\functions.js:174:16) at async initFunction (C:\Users\MY_USER\AppData\Roaming\npm\node_modules\appwrite-cli\lib\commands\init.js:79:20) { code: 500, response: [Object: null prototype] { message: 'Server Error', code: 500, type: 'general_unknown', version: '1.4.3' } } ✗ Error Server Error
SERVER LOG: [Error] Timestamp: 2023-09-16T15:16:02+00:00 [Error] Method: POST [Error] URL: /v1/functions [Error] Type: Utopia\Database\Exception\Structure [Error] Message: Invalid document structure: Unknown attribute: "schedule" [Error] File: /usr/src/code/vendor/utopia-php/database/src/Database/Database.php [Error] Line: 2619
Does anyone know how to fix it?
I have fixed it with the migrate command: docker compose exec appwrite migrate
(Version 1.4.3)
Recommended threads
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Function in Node.JS to monitor events ar...
Hello everyone. I'm creating my first Node.JS function, but I don't have much experience with node and javascript. I'm trying to create a function, that monito...