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
- Unable to signup to appwrite cloud
When attempting to create an online cloud account on appwrite.io, I get the following message : "This email address must already be in its canonical form. Pleas...
- Email address must be in its canonical f...
Hello, Recently I was trying to signup with my GitHub account with appwrite account for availing the student benifits but while trying to signup I saw such erro...
- help!!!!
whats happening no clue pls help 🥲