Write gcp cloud function for losant GCP Fuction:Node

I want to send mqtt data to gcp:function node .How can i read the data sent by function node in cloud function.

I am writing cloud function in python 3.7.
getting this error,

  • “message”:

“Request failed with status code 500”

  • “type”:


That indicates some sort of error in the function you wrote on the GCP side; I would check your logs in GCP and see if there is any additional information there.

I would also try writing a simple “hello world” function in GCP and confirming you can get that to work first before switching to your more complex function. That will help debug where exactly the problem lies.