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

response.send("Hello World");
response.send({
status: "success",
data: "your data object or string or any type"
});

--

--

--

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

How to Remove Duplicate Records from 1 Billion records without any Index in MySQL?

Part 3: Building Cloud-Native Java Microservices with OpenJDK

Magnet Virtual Summit 2020 CTF — Windows

Kubernetes Journey — Basic Linux commands you should know

I will convert psd, xd, sketch, ai, figma, pdf, png, jpg, zeplin to wordpress website

The Firebase Realtime Database and Flutter-Setup and Connections

Deploying Clojure jars to Github Packages with Github Actions

How to Use Kasten for Kubernetes Backup, Recovery and Cross-Cluster Migration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cing Sian Dal

Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

More from Medium

Using Fast JSON API Gem

Hosting multiple containerized websites on a single server

Sample Script to test firebase cloud messaging(FCM) push notifications using Axios in nodejs.

How to use MariaDB to store text containing emojis in a Node.js environment