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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- HTTP POST to function returning "No Appw...
Hi everyone, I’m running into an issue with my self-hosted Appwrite instance. I’ve set up my environment variables (APPWRITE_FUNCTION_PROJECT_ID, APPWRITE_FUNC...
- Can't add dart 3.5 runtime
Modified the `.env` to enable dart 3.5 runtime on my self-hosted instance but still can't find the runtime when creating a new function. I manually pulled the i...