Closed dwindibank closed 5 years ago
Good catch, I'll see how we can fix that. Error needs to bubble up from the nforce library
As an FYI ... my intern was playing with this to see if there's an easy fix, and this isn't an issue if you switch to the main nforce library. So at some point the nForce library fixed this issue.
As a note: same thing is happening with the DML node. Fairly routine SF errors (such as the ones below) are not getting caught.
Example errors not getting caught:
Another related case for this ... Due to a problem with our VPN our Node-Red server can't access SalesForce. The error isn't being handled correctly (i.e. the node is just getting stuck with a status of "Connecting".
This the the error from the logs:
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: Error: connect ECONNREFUSED 136.147.43.44:443 at Object._errnoException (util.js:1003:13) at _exceptionWithHostPort (util.js:1024:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1194:14)
The ECONNREFUSED error is actually coming from our VPN issue, but the Nodes are not catching the error.
Fixed in 0.7.0
In the soql and sosl nodes, if there's an issue with the connection it get's raised and caught by a Catch All node, but if there's an issue with the query the error isn't caught by the Catch All node.
E.g.