GoogleCloudPlatform / node-red-contrib-google-cloud

Node-RED nodes for Google Cloud Platform
Apache License 2.0
90 stars 57 forks source link

pubsub node bug #59

Closed MiLaak closed 4 years ago

MiLaak commented 4 years ago

There is minor bug in pubsub node. If using "Assume JSON" option and the received pubsub message is not valid JSON then there will be uncaughtException and whole node red will shut down. ref https://nodered.org/docs/user-guide/handling-errors

Work around is simple: Not to use "Assume JSON" but instead parse JSON on separate node.

kolban-google commented 4 years ago

Thank you my friend. I have wrapped the JSON parsing with a JavaScript try/catch to handle. I have committed the change and it will be published in the next release. Thank you VERY much for reporting.

kolban-google commented 4 years ago

Delivered as part of 0.0.15