`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
Project ID:
78bdb17d-9f23-47f8-a244-bbe835bdaf1b
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.
make sure the setting is set to full https://docs.railway.app/guides/public-networking#provider-specific-instructions
Yep, that was the case when I encountered the issue.
glad you fixed it!
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.
ah gotcha, keep me posted
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.
odd but happy to hear it