Nodejs error 14 connect failed



I have no idea which category I should post my issue.

My issue:
I am getting this output with node.js and the node.js example from

Error { Error: 14 UNAVAILABLE: Connect Failed
at Object.exports.createStatusError (C:\Users\A686269\Documents\mqttTTN\node
at Object.onReceiveStatus (C:\Users\A686269\Documents\mqttTTN\node_modules\g
at InterceptingListener._callNext (C:\Users\A686269\Documents\mqttTTN\node_m
at InterceptingListener.onReceiveStatus (C:\Users\A686269\Documents\mqttTTN
at callback (C:\Users\A686269\Documents\mqttTTN\node_modules\grpc\src\client
code: 14,
metadata: Metadata { _internal_repr: {} },
details: ‘Connect Failed’ }

Can someone explain me why this is happening?

Thanks in advance.


Nevermind I fixed it. To everyone having this issue in the future, youre probably on a vpn or there is some issue with your pc’s wifi. Switching to a 4G wifi hotspot fixed it for me.

(Kawillers) #3

I’m also seeing that with a wired connection.

Question: what was the issue and waht was the fix?

Greetings, Karin

(Arjan) #4

See Node-RED “Error: 14 UNAVAILABLE: Connect Failed” when using node-red-contrib-ttn which suggest to use Node-RED’s built-in MQTT nodes, rather than the advanced/complex one offered by TTN.

(Indeed, I’ve always used the built-in MQTT nodes, without any problems.)