'How to connect ngrok with bot emulator?

I have developed a chatbot in C# and hosted it on our local server. When I'm trying to connect it remotely with ngrok. I get below error:

Failed to spawn ngrok{"error_code":104,"status_code":503,"msg":"ngrok is not yet ready to start tunnels","details":{"err":"a successful ngrok tunnel session has not yet been established"}} [12:25:59]Error: The bot is remote, but the service URL is localhost. Without tunneling software you will not receive replies.



Solution 1:[1]

try npm upgrade. i think it may fix the problem

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexis mouss