ngrok icon indicating copy to clipboard operation
ngrok copied to clipboard

Slow network activity in Angular-CLI using ngrok

Open ricardoasc opened this issue 7 years ago • 5 comments

I created a project in Angular and soon after I tried to execute by the random URL generated by ngrok, but when accessed Developer Tools (Network) seen that the .js files are loading very slowly and it takes a long time to render the page data in the Google Chrome browser .

My internet connection is unstable and running fast to load even sites with enough content.

What could be happening?

Command used for installation: npm install ngrok -g

Node: 8.9.4 Angular CLI: 1.6.8 ngrok version 2.2.8

Cmd1: ng serve

Cmd2: ngrok http -host-header=rewrite site.dev:80

11 requets | 7.1 mb transferred | Finish: 3.3min | DOMContentLoaded: 2.3 min | Load: 2.3 min

ricardoasc avatar Mar 03 '18 03:03 ricardoasc

Hello @ricardoasc, I tried running the ng serve on prod environment by disabling the host check option and it worked, Cmd1: ng serve --prod --host 0.0.0.0 --disable-host-check. and tried using ngrok with the following solution Cmd2: ngrok http {your port} -host-header="localhost:{your port}"

KrishnaPuppala avatar Mar 14 '18 15:03 KrishnaPuppala

Even with the production build and running as you described, even a blank page is taking a long time to load, the problem is the delay in rendering the page in the Browser.

Continue to load page slowly ...

ricardoasc avatar Mar 14 '18 16:03 ricardoasc

Hello, there!, I have the same issue a Blank Page in the forwarding ngrok url and I'm getting a "ERR_CONTENT_LENGTH_MISMATCH" when the browser requests the bundles,I think it is due to my slow connection the timeout happend after 5 seconds waiting for the response, Maybe increasing the waiting time or timeout time in nodejs or webpack could help.

glenyrr avatar Apr 03 '18 07:04 glenyrr

Tengo el mismo problema

operezs1990 avatar Sep 05 '19 13:09 operezs1990

Same issue for me. Why did the developers can't fix this issue

Srikanth9142 avatar Aug 02 '20 02:08 Srikanth9142

Thank you for opening this issue! As of April 2016, the ngrok service has permanently moved to https://ngrok.com/. To join the community and file bug reports or feature enhancements for the ngrok agent, please go to https://github.com/ngrok/ngrok.

This repository is no longer actively maintained and will be archived soon to reduce confusion with the latest ngrok versions. We thank you for the continued support of ngrok and look forward to seeing you over at ngrok.com and the ngrok Community Repo.

russorat avatar May 09 '24 19:05 russorat