workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

`wrangler dev` fails if HTTP/2 is unavailable

Open caass opened this issue 3 years ago • 1 comments

Blocked on #864

wrangler dev fails if HTTP/2 is unavailable, rather than falling back to HTTP/1. This causes problems in environments where HTTP/2 is unsupported, such as in StackBlitz.

caass avatar Apr 29 '22 14:04 caass

This should not be blocked by #864, as it would work with API token - allowing the full experience, except the login part.

eidam avatar Jul 28 '22 09:07 eidam

Following up on this, it looks like Stackblitz doesn't currently support the http2 module, which Wrangler depends on

penalosa avatar Nov 04 '22 10:11 penalosa

Wait, so what's the current status of this? Is the "quick win" to gracefully fallback to http/1.1 when http/2 is unsupported?

caass avatar Nov 29 '22 17:11 caass

This isn't really a quick win—the problem is that we rely on the http2 module for remote mode. Fixing it would require rewriting most of remote mode

penalosa avatar Nov 29 '22 18:11 penalosa

Following up to track status on this: this involves investigating whether we can use fetch or similar APIs rather than the http2 module

penalosa avatar Jan 23 '23 16:01 penalosa

Closing in favour of https://github.com/cloudflare/workers-sdk/issues/3027

penalosa avatar Jun 13 '23 14:06 penalosa