# Ngrok node doesn't work : no return message

**URL:** https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015
**Category:** General
**Created:** [10 May 2019 22:48 UTC](https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015 "2019-05-10T22:48:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)
#### Post date: [10 May 2019 22:48 UTC](https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015/1 "2019-05-10T22:48:28Z")

</div>

Hello  
I try to use ngrok node.  
But it doesn't work.  
here is my code 🙂  
`[{"id":"80ffda43.b67d08","type":"ngrok","z":"15f53d11.3e2703","port":"https://localhost:8081","creds":"f1427d00.42191","region":"us","subdomain":"","name":"","x":313.9125061035156,"y":356.5562210083008,"wires":[["c9d0a002.c1c4a"]]},{"id":"78b24a22.196dc4","type":"inject","z":"15f53d11.3e2703","name":"","topic":"","payload":"on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":144.0187530517578,"y":357.0249938964844,"wires":[["80ffda43.b67d08"]]},{"id":"c9d0a002.c1c4a","type":"debug","z":"15f53d11.3e2703","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":438.5124816894531,"y":354.38123321533203,"wires":[]},{"id":"f1427d00.42191","type":"ngrokauth","z":"","authtoken":"6yYhu28UWjfEbuM8Lh9e3_5MTFUEJa7ji1eaLkwVasw"}]`  
Of course, the auth token is correct, I copied it from the ngrok site.  
When I inject 'on' on this node, I get nothing back in the output of the ngrok node.  
And I have no error.  
so what? What can I do?

---

<div class="post-metadata">

### Author: ![Andrei](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei/32/10446_2.png) [@Andrei](https://discourse.nodered.org/u/Andrei)
#### Post date: [10 May 2019 23:57 UTC](https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015/2 "2019-05-10T23:57:42Z")

</div>

I could recommend:

1- Try to instantiate ngrok directly from your terminal (therefore not using Node-RED) to see if it works  
2- ngrok will check the configuration file below to create the tunneling. Check if the file looks good:

> ~/.ngrok2/ngrok.yml

3- Try changing the config in your ngrok node by configuring only the port number instead of `https://localhost:8081`

---

<div class="post-metadata">

### Author: ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)
#### Post date: [11 May 2019 13:24 UTC](https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015/3 "2019-05-11T13:24:55Z")

</div>

Hello

Thé command work fine when they are launched in the terminal. But not when they are launched with the same syntax from the node exec.

Envoyé de mon iPhone

---

<div class="post-metadata">

### Author: ![mike67](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@mike67](https://discourse.nodered.org/u/mike67)
#### Post date: [11 May 2019 21:30 UTC](https://discourse.nodered.org/t/ngrok-node-doesnt-work-no-return-message/11015/4 "2019-05-11T21:30:39Z")

</div>

Now I found the reason of the different behavior.  
In the command line, I was logged as admin  
But node-red is running as root.  
So, the auth mechanism was not correctly done.  
Now, I do everything as root, and it works fine.
