-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Errors while and after using http2 #945
Comments
Possibly a duplicate of #252?
WMR uses While I have my, opinions, about this process and using
I should warn, WMR hasn't seen any (real) development in well over a year now. I (amongst others) do still use it, but it has a fair number of rough edges and can sometimes require some "maintainer's knowledge" to wield optimally. Just want to make that clear. It can still be viable, but bug fixes are unlikely to happen. |
That's great information @rschristian! Should help us to evaluate the right tool to use. I found that other issue when I searched for "http2" and also tried installing "devcert", but to no avail. Now I wonder how to get back my system to the state before trying http2. I would like to avoid restoring the system from Time Machine. |
Apologies, I'm not a Mac user so can't give great instructions, but this seems to be what I'm wondering (hoping) it's as easy as just running a "remove-trusted-cert" or if it's a file you can directly edit if needs be to get that localhost cert gone that's causing you issues. Re: Build tools, Vite, Astro, and Fresh are all excellent and support Preact (Fresh being a Preact-specific framework). I know you've tested out |
Actually, I can remove certs using the keychain app. Just need to know which one, to avoid making the situation even worse :-) Many thanks for trying to help here. Much appreciated! Yes, I tried preact-cli but found it too heavy. We want to have a really light-weight setup, doing all configuration ourselves etc. so I decided to start from scratch. But I am not yet set on a specific build tool. I'll try what you recommended! |
Linux brain, I immediately jump to editing some config file or running the command in reverse :-) AFAIK we don't set any name or anything, just ask it to create a cert for the hostname. Any chance you just have the one for localhost? wmr/packages/wmr/src/lib/http2.js Line 6 in 729ed8a
|
I cleaned up a bit but still get the error. However, I wonder how a certificate can influence the http connection? Isn't that only used for https? Interesting also that (at least for the Firefox setup) |
Honestly, I'm not sure. It doesn't seem that far-fetched to me that a browser would refuse a connection if it suspects some certificate tomfoolery going on (as unfortunately local HTTPS necessitates). I don't really know enough about that.
Indeed! Additionally, one of the reasons I'm not a fan of |
@mike-lischke any chance you've tried restarting Chrome? This could be HSTS pinning - either restart Chrome, or go to As for DevCert, last time I used it was before the M1's arrived. We may also be on an old version? |
@developit Unfortunately this didn't help. In the meantime I jumped over to Vite and found this a great combination with Preact. So I think we can close this issue. Thank you guys! |
Describe the bug
Enabling http2 in the wmr config causes an error and then prevents normal http to work afterwards.
To Reproduce
In an attempt to make the dev server using https (for which I couldn't find any documentation) I experimented with the http2 setting (wmr.config.ts):
With that I ran my npm script
dev
:"dev": "wmr start",
which asked me for a password (without explaining why's that needed) and then failed:
This wouldn't be a big issue if this call had not changed something which now prevents to connect to the server from Chrome and Safari (only Brave works), which prints a
ERR_CONNECTION_REFUSED
error.Expected behavior
There are actually 3 points here:
Bug occurs with:
wmr
orwmr start
(development)wmr build
(production)wmr serve
Desktop (please complete the following information):
Additional context
I'm currently evaluating wmr to switch over our current React application, but am pretty much blocked by the leftovers from the http2 attempt. So I would much appreciate a way to clean up and get at least http access back.
Many thanks, Mike
The text was updated successfully, but these errors were encountered: