Flutter Developer
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?