sammachin / node-red-contrib-ngrok

ngrok node for node-red
MIT License
7 stars 10 forks source link

Fix to catch connection errors #8

Closed okhiroyuki closed 4 years ago

okhiroyuki commented 5 years ago

Fixed to catch an error when connecting to ngrok due to a token error.

スクリーンショット 2019-11-10 15 44 33

Error Message on The Terminal

(node:87258) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 127.0.0.1:4040
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1113:14)
warning.js:18
(node:87258) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
warning.js:18
(node:87258) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
warning.js:18