GoogleCloudPlatform/node-red-contrib-google-cloud

pubsub node bug

MiLaak opened this issue · 2 comments

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.

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.

Delivered as part of 0.0.15