-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSL mode refreshes browser excessively #5826
Comments
This issue was made worse by the absence of the @angular/animations module and import of "BrowserAnimationsModule" needed by Material2 (@angular/material). But after fixing that the problem is still there, if less severe. |
I also face the same issue. Also see #2816 We need to test on SSL locally |
I had a look at the linked issues and the proposed fix has already been merged into the The problem definitely seems related though, and webpack/webpack-dev-server#592 may provide some hints as to why this is happening. |
Seems like this has been fixed in webpack 1.15.2 (webpack/webpack-dev-server#604). So it might suffice to bump the dependency? |
Any update on this? We're authenticating with Azure AD on several apps and that requires SSL locally |
Im also getting this [wds] disconnect error on chrome with self-signed ssl certs. |
#4839 Update to Chrome 59 might help. |
@veke I'm on Chrome 60 and still have this issue when running SSL. I'm relatively new to node and webpack dev server, I did notice the node_modules\webpack-dev-server\ssl folder was empty - should I install a cert here? If so is there a guide somewhere? I tried pointing ng-serve to a certificate that has a SAN (generated via powershell) but chrome/FF seem to ignore it and use one without a SAN. The refreshing can vary but sometimes it seems infinite and is very difficult to work with! Many thanks |
@mjharper84 |
@veke Thank you so much for this! your script + installing the certificate in the trusted root cert authority finally persuaded Chrome to fully accept the certificate and get rid of the [wds] refresh loop. #Win |
I have been getting this also, with no --ssl. |
I'm going to chime in here with my experiences specifically on IE11: I am writing an OfficeJS add-in for Microsoft Word. On Office 2016 for Windows, Word uses IE11 as the browser to my Angular 4.x app. Everything has to be served via SSL, so I created my own self-signed dev certificate using OpenSSL which I pass through to the
This works great - except that I am experiencing the same multi-reload issue described here. I have installed this certificate and: Chrome 61.0.3163.100 all report the site as trusted. Firefox 56.0.1 (64-bit) doesn't, complaining about the certificate being self-signed. Environment Info:
What I see pretty consistently is:
When I make a change and save, I see:
Yes, Sometimes, I see this:
After a few loops, everything loads successfully - until I make a change and save. :( I am not sure if this is just an IE11 thing, because I have to load the app within the context of an Office host, which doesn't allow me to use a different browser. Maybe this could help pinpoint the issue? @filipesilva please let me know if you need more info. |
Ubuntu 16.04 Mate Solved it disable tilda from start up.........finally ( systems/preference/personalize) |
For the record, I am still experiencing this on Angular CLI 1.6.0. @filipesilva There looks to be a very promising fix for this in WDS v3. Here's the relevant comment on the repo. Just keeping you in the loop here and hoping the Angular CLI will update its dependencies when WDS v3 is released. Thank you for all of your hard work so far! |
Uhhhh I did not unassign anyone GitHub lol 😄 |
I am also experiencing this with the latest version of chrome. Here is the command I am running: ng serve -e prod --deploy-url / --ssl 1 --ssl-key 'ssl/local.key' --ssl-cert 'ssl/local.crt' |
As @TheSamsterZA mentioned this is an issue with webpack-dev-server and appears to be corrected in the latest alpha release of its v3. Once a stable release is made the CLI should be able to integrate this version. |
Any progress on this. It's impossible to test ssl locally on the ios simulator due to it refreshing constantly. |
I've got two machines (Win 7 / Win 10) same project: CLI v1.7.1 and Chrome v64. I only see this on the Win 7 machine. I am using the same start command on both machines and the cert is being installed with the green secure Icon on both machines. ng serve --ssl 1 --ssl-key %certs%localhost.key --ssl-cert %certs%localhost.crt --port 51443 --watch |
Scrap my comment above. I've now started seeing this on the Win 10 machine also. My certs are showing as green in browser and my package versions are as follows. I am on cli v1.7.1 and latest chrome. I need to run SSL locally so any pointers greatly appreciated. |
@dottodot I really don't want to disable live-reload, is that still the only option? |
Unfortunately that the only method I've found to work so far. |
I had the same problem as you guys. I've written a blog post about a solution. Hope this can help you guys. |
We resolve this issue by setting up a standalone proxy (Nginx) to delegate the SSL. |
I had the refresh issue without My fix was to remove the caret in my package.json file. |
I resolved it by doing this and its working for me. And instead of using localhost use 127.0.0.1 on your browser, I am assuming the default certificate generated is for 127.0.0.1. |
@TheSamsterZA with that option "--live-reload false" , HMR doesnt work anymore |
I need to be on https to test facebook Api. I followed these instructions : https://medium.com/@rubenvermeulen/running-angular-cli-over-https-with-a-trusted-certificate-4a0d5f92747a Strangely even following the instructions, the https://locahost:4200 angular web app is not recognized as safe I have the same issue, my web loop reboots. I still didnt find any solution. |
Hi @ranouf Thanks for reading my blog post. May I ask what version of Angular you're running? |
Hi again @RubenVermeulen :) Thanks to remind to answer here too, so for the others, the problem for me was I added coats around the file paths, The solution was to remove them, like this: I also notice that if you put file path which doesnt't there is no error from Angular-Cli. It could be interesting to display somethinr like: Error, the certificate file was not found or is in incorrect format. For those who want to see the discussion we had on Ruben's page: |
@RubenVermeulen Using this command: Chrome says the certificate is valid. Edit: |
Live reload is an issue for me as well. I'm setting the angular.json ssl, sslKey, sslCert and host (mapped to matching ssl host in my hostfile) values in the serve > options. My only workaround at this point is to run with live-reload disabled and refresh manually (Oh, the humanity!!)... Angular CLI: 7.1.4 Package Version@angular-devkit/architect 0.11.4 |
I'm experiencing this too without SSL. |
Same here, and without using SSL: Angular CLI: 7.2.2 Package Version@angular-devkit/architect 0.13.8 |
I am subscribing this issue since a year and no soluton is upcoming while many people face it. This is disappointing little bit. |
I have the same issue as @PigBoT. I would like to run my app with --ssl AND keep using the live-reload functionality as well... Are there any updates on this? |
I'm sorry, but we can't reproduce the problem following the instructions you provided. If the problem persists, please open a new issue following our submission guidelines. A good way to make a minimal repro is to create a new app via |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Bug Report or Feature Request (mark with an
x
)Versions.
v1.0.0
Repro steps.
ng serve --ssl
The log given by the failure.
Browser console shows "[WDS] Disconnect" and then refreshes 5-12 times after recompiling on code change or refreshing the page manually.
Desired functionality.
Not excessively refreshing the browser
Mention any other details that might be useful.
Issue seems to have been triaged already for another project. Known problem with webpack-dev-server. Can we include the same fix?
facebook/create-react-app#574
The text was updated successfully, but these errors were encountered: