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
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...
- Auth working for emulator but not for ph...
hey guys i'm using appwrite for expo react native it is working perfectly for emulator but does not working for physical devices can u explain any one and it is...
- unlike any other provider, your sites DN...
your nameservers dont work with a funny little CNAME error, which is a weird bug but thats what you get when you try to be the kitchen sink, funny errors.