
Hey guys, I'm new here so please feel free to beat me up for being dumb. I am running a function using Node.js and keep getting the error below. I am trying to troubleshoot it, but I can't get any console.logs or console.errors to actually print out. Maybe I am looking for them in the wrong place? Maybe getting written natively and not to appwrite logs? Help!
TypeError: Cannot read properties of undefined (reading 'res') at module.exports (/usr/local/server/src/function/src/main.js:73:20) at execute (/usr/local/server/src/server.js:210:22) at action (/usr/local/server/src/server.js:225:27) at process.processTicksAndRejections (node:internal/process/task_queues:105:5) at async /usr/local/server/src/server.js:14:5

For context, I am expecting a pre-build json payload from my front-end which I am passing to openAI api for image analysis, have no idea where it's blowing up... How do most people debug functions? Is there a way to do it locally or something?
Recommended threads
- My DBs disappeared from my console and g...
Hello Team, Out of the blue, my express app started encountering 401 errors in fetching data. Upon logging into my console, I cannot see my databases anymore ...
- Function 404 error - Deployment with the...
I have a function in my Appwrite Cloud (free plan) project that cannot be accessed or deleted (404 in both UI and CLI). I'm stuck at the 5 functions limit and c...
- Confused whether to use GDrive or Appwri...
I am making a blogging site. right now I'm using GDrive to host the blog post's banner + inline images. my thinking was that since GDrive has 15GB storage I sho...
