neutrino2211Original post
Web Developer
I have a cloud function called onWaitlist which listens for changes on a database collection but each execution fails with the following error.
Bash
Internal curl error has occurred within the executor! Error Number: 52\\nError Code: 500The function directory contains an index.js file which exports a default function.
JavaScript
export default async ({req, res, log}) => { log("executing", req.bodyJson) const {$id} = req.bodyJson; //...But nothing is logged and the function always fails. Any ideas why?
Summary
Cloud function 'onWaitlist' fails with 500 error due to internal curl error. The index.js function is not logging anything and always fails. Possible solution: Check for any potential CORS issues or firewall restrictions, ensure proper configuration of the cloud function environment variables.