When GoogleCloudPubSubOutNode is initialized, an uncaught exception is thrown when creating the topicReady Promise causing Node-RED to fail to deploy the flow. An example would be if a non-existent topic name is provided. I believe this is because some of the async stuff going on behind the scenes in the API client. Adding a catch fixes the issue, but will cause a NPE when a msg is passed into the node:
IMHO configuration errors should not result in exceptions during node initialization; instead, feedback should be provided to the flow and the node should be started in a non-functional state.
When
GoogleCloudPubSubOutNode
is initialized, an uncaught exception is thrown when creating thetopicReady
Promise causing Node-RED to fail to deploy the flow. An example would be if a non-existent topic name is provided. I believe this is because some of the async stuff going on behind the scenes in the API client. Adding a catch fixes the issue, but will cause a NPE when amsg
is passed into the node:IMHO configuration errors should not result in exceptions during node initialization; instead, feedback should be provided to the flow and the node should be started in a non-functional state.