# Nodejs error 14 connect failed

**URL:** <https://www.thethingsnetwork.org/forum/t/nodejs-error-14-connect-failed/14305>\
**Category:** Application Development\
**Created:** [May 18, 2018, 1:04pm UTC](https://www.thethingsnetwork.org/forum/t/nodejs-error-14-connect-failed/14305 "2018-05-18T13:04:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Feyyazc](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@Feyyazc](https://www.thethingsnetwork.org/forum/u/Feyyazc)\
**Post date:** [May 18, 2018, 1:04pm UTC](https://www.thethingsnetwork.org/forum/t/nodejs-error-14-connect-failed/14305/1 "2018-05-18T13:04:52Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Feyyazc](https://www.thethingsnetwork.org/forum/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@Feyyazc](https://www.thethingsnetwork.org/forum/u/Feyyazc)\
**Post date:** [May 18, 2018, 1:17pm UTC](https://www.thethingsnetwork.org/forum/t/nodejs-error-14-connect-failed/14305/2 "2018-05-18T13:17:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kawillers](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kawillers/32/44156_2.png) [@kawillers](https://www.thethingsnetwork.org/forum/u/kawillers)\
**Post date:** [January 10, 2019, 8:28am UTC](https://www.thethingsnetwork.org/forum/t/nodejs-error-14-connect-failed/14305/3 "2019-01-10T08:28:58Z")

</div>

I’m also seeing that with a wired connection.

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

Greetings, Karin

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [January 10, 2019, 9:54am UTC](https://www.thethingsnetwork.org/forum/t/nodejs-error-14-connect-failed/14305/4 "2019-01-10T09:54:33Z")

</div>

See [Node-RED “Error: 14 UNAVAILABLE: Connect Failed” when using node-red-contrib-ttn](https://www.thethingsnetwork.org/forum/t/node-red-error-14-failed-to-connect/19742/12) 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.)
