Trying to run databases.createDocument via node-appwrite SDK gives PHP error
- 0
- Self Hosted
- Databases
I am running appwrite self hosted version 1.5.4 and using SDK for "node-appwrite" version 12.0.0 when I try to do a create document call I get this error: Error in transaction.post.ts Error: Error handler had an error: Appwrite\Extend\Exception::__construct(): Argument #3 ($code) must be of type ?int, string given, called in /usr/src/code/app/controllers/general.php on line 711
at Client.call (node_modules/node-appwrite/lib/client.js:206:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Databases.createDocument (node_modules/node-appwrite/lib/services/databases.js:1711:16) at Object.handler (server/api/bank/transaction/transaction.post.ts:27:1) at async node_modules/h3/dist/index.mjs:1962:19 at async Object.callAsync (node_modules/unctx/dist/index.mjs:72:16) at async Server.toNodeHandle (node_modules/h3/dist/index.mjs:2249:7)
Get a bit perplexed by the general.php error 🙂 hope someone might help point me in the right direction
Recommended threads
- How to disable appwrite/embedding from s...
Hi everyone! I'm currently running a self-hosted instance of Appwrite. For my current use case, I don't need the AI/embedding features, and I noticed the `app...
- Invalid type for attribute 'email': emai...
I'm using the node-appwrite SDK to create a table, the column payload looks like this: ```json [{"key":"email","type":"email","required":true, "size": 512}] ``...
- Git connection is not working anymore on...
Hello all, I updated from 1.8.1 to 1.9.0 then 1.9.5. All seems to work even the Github connection. In Git configuration I see my Github user but when trying to...