`Error: Stream error in the HTTP/2 framing layer` when using end-to-end encryption (Cloudflare)

Sooo, this is rather interesting. I'm getting the error Error: Stream error in the HTTP/2 framing layer when I proxy traffic through Cloudflare to Railway, but only when end-to-end encryption is enabled. With flexible selected the request resolves fine. (Apart from the TOO_MANY_REDIRECTS error which is due to the flexible setting) Found no other resources on this so I'm rather stuck. I don't wanna use flexible encryption because the API handles sensitive data.
9 Replies
Percy
Percy10mo ago
Project ID: 78bdb17d-9f23-47f8-a244-bbe835bdaf1b
SIMPLE MARK
SIMPLE MARK10mo ago
Also, interestingly, if my authorization checks pass then I don't get a stream error, but if they don't I do. However no errors occur whatsoever when bypassing Cloudflare (using a randomly generated railway domain). So I honestly don't know what would be the issue here.
SIMPLE MARK
SIMPLE MARK10mo ago
Yep, that was the case when I encountered the issue.
Brody
Brody10mo ago
glad you fixed it!
SIMPLE MARK
SIMPLE MARK10mo ago
Ohh sorry I meant to say that it was set to full when I first saw the issue. So it didn't fix it sadly. I'll be doing a few redeploys next week so I'll check again for this issue then. Hopefully it was some weird one-off bug related to some Cloudflare / Railway outage meaning it's hopefully gone now.
Brody
Brody10mo ago
ah gotcha, keep me posted
SIMPLE MARK
SIMPLE MARK10mo ago
The issue went away by the time I deployed new changes so I'm guessing this was either related to a Cloudflare or Railway downtime.
Brody
Brody10mo ago
odd but happy to hear it
Want results from more Discord servers?
Add your server