Error message:
An internal curl error has occurred within the executor! Error Msg: Operation timed out\nError Code: 500
Appwrite cloud
Entry point: node index.js
Execute Access: Any
I just deployed the example for node18.0 via github repository `const fetch = require("node-fetch");
module.exports = async (context) => { const payload = context.req.body;
const todo = await fetch(`https://jsonplaceholder.typicode.com/todos/${payload.id ?? 1}`).then(r => r.json());
return context.res.json({
message: 'Hello Open Runtimes 👋',
todo
});
}`
According to the logs the build succeeded
And ran
curl -H "X-Open-Runtimes-Secret: secret-key" -H "Content-Type: application/json" -X POST https://<function>.appwrite.global/ -d '{"payload": "{2}"}'
Locally it's working !!!
What I'm missing here (It's my first time I'm using function in appwrite)
Getting 500 error when trigger cloud function
Found the issue, it should be only index.js and not node index.js
[SOLVED] Getting 500 error when trigger cloud function
Recommended threads
- 408 Timeout / Curl Error 7 in Executor w...
Hey everyone, I am losing my mind over a routing loop/timeout issue on a fresh self-hosted setup. I have a single Linux VPS (IP: 45.141.37.105) and one domain (...
- functions returning error 401 in local
I updated to 1.9.0, and the functions that used to work fine in 1.8.1 are now giving me a 401 error. I can't seem to find a solution. If anyone is running versi...
- router_deployment_not_found
I updated my function a few times and now i am getting the error: router_deployment_not_found I even reverted back to my original code but i am still getting th...