Firebase Cloud Function Error: Response is not valid JSON object.

Yes, your Response is not valid.

Because we’re sending in String like this:

response.send("Hello World");

So, be valid to your Response like this:

Send with some kinds of JSON object scheme:

status: "success",
data: "your data object or string or any type"

Response with JSON Object.