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
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...
- NEW ERROR Invalid document structure: At...
Error: ```AppwriteException: document_invalid_structure, Invalid document structure: Attribute "pb.kmsgxPkgInfo.id_info" must be an array (400)``` I’m encounter...
- Issues with executor in Appwrite 1.9.0
Hi, I’ve recently did a fresh install of appwrite 1.9.0 self hosted and when I run a function, it just waits indefinite This is the error from the log: [Er...