DEV Community

loading...

Discussion on: Hitting a Cloud Function when you submit a Google Form

Collapse
abejr profile image
abejr

I couldn't get it to work, for some reason the data I was receiving in Firebase Cloud Functions was malformed, I had to add the following to the fetch parameters:
contentType: "application/json"
Then, the payload could be accessed from the function directly from the body object
PS found this solution from stackoverflow.com/questions/629020...