Rank 2: Process
I created a function hosted it on aperture connected it to my domain, in the settings I added da collection to listen to any time a new document is created , it triggers the function but doesn’t log the payload, in the docs it’s said to use req.bodyjson but I keep getting this error : SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at get bodyJson (/usr/local/server/src/server.js:125:21)
at Module.default (file:///usr/local/server/src/function/src/main.js:15:26)
at execute (/usr/local/server/src/server.js:220:42)
at action (/usr/local/server/src/server.js:237:27)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async /usr/local/server/src/server.js:26:5