Nodejs error 14 connect failed


#1

Hi,

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 https://www.thethingsnetwork.org/docs/applications/nodejs/quick-start.html.

Error { Error: 14 UNAVAILABLE: Connect Failed
at Object.exports.createStatusError (C:\Users\A686269\Documents\mqttTTN\node
_modules\grpc\src\common.js:87:15)
at Object.onReceiveStatus (C:\Users\A686269\Documents\mqttTTN\node_modules\g
rpc\src\client_interceptors.js:1214:28)
at InterceptingListener._callNext (C:\Users\A686269\Documents\mqttTTN\node_m
odules\grpc\src\client_interceptors.js:590:42)
at InterceptingListener.onReceiveStatus (C:\Users\A686269\Documents\mqttTTN
node_modules\grpc\src\client_interceptors.js:640:8)
at callback (C:\Users\A686269\Documents\mqttTTN\node_modules\grpc\src\client
_interceptors.js:867:24)
code: 14,
metadata: Metadata { _internal_repr: {} },
details: ‘Connect Failed’ }

Can someone explain me why this is happening?

Thanks in advance.


#2

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.)