Functions are failing continously both for python and node
@D5 @Shreesh
Thanks for moving here! <:appwritepeepo:902865250427215882> 😄
Respect to your issue, what's the code you're using in your function?
Also, how are you creating them?
@Iresharma I recommend trying to use Appwrite CLI. I've thought it was going difficult configuring it, but then after trying I can confirm it is really easy to use
ok I can try
About the code in the function, I have tried everything from writing my custom logic to copying example from doc as weel as just a hello world
Probably you don't have other needed files
That's why I recommend installing and trying to create and deploy one with CLI since it will configure automatically everything and create all needed folder and a template too
ok I am trying that
thank you
yo
its still not working
i tried the cli as well
if youre free can you get on a quick call?
@D5
what's your code and what's the error?
Error: Cannot find module '/usr/code-start/index.json'
Require stack:
- /usr/local/src/server.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
at Module.Hook._require.Module.require (/usr/local/lib/node_modules/pm2/node_modules/require-in-the-middle/index.js:81:25)
at require (node:internal/modules/cjs/helpers:93:18)
at /usr/local/src/server.js:55:28
at processTicksAndRejections (node:internal/process/task_queues:96:5)
module.exports = async function (req, res) {
// console.log("hello log")
res.json({
success: true
});
};
how did you deploy your function? and what's your folder structure?
Recommended threads
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...
- After a GET request is passed to functio...
Create execution in the console can normally retrieve the get parameters。WHy?
- function subdomain ssl certs
The generated subdomain isn't getting a valid ssl cert, I was wondering if appwrite automatically generates one or uses a wildcard for *.functions.domain.com? ...