Undocumented Error Fly Proxy

I have an Phoenix Live View App running on fly, routed through Cloudflare. The app is running on ewr region, but I had setup hkg as well, but removed the second region.

Whenever I try to connect to the App, it sometimes goes through, sometimes fails. The Stripe Webhook that I have setup also fails due to timeout errors sometimes but succeeds when I manually retry it. Checking the logs show a proxy error,

2021-06-07T05:55:16.404794291Z proxy[d9ee2a42] maa [error] error.code=1 error.message="Undocumented" request.method="GET" request.url="/live/websocket?_csrf_token=LTwaDSc9elowTEgQDxwKHS8KWHk4KB0aayXFQx31ty1fWIG0ne62ZMeo&_track_static%5B0%5D=https%3A%2F%2Fdev.indiepaper.co%2Fcss%2Fapp-efd45550ca88e611deedfb422cf8b9fc.css%3Fvsn%3Dd&_track_static%5B1%5D=https%3A%2F%2Fdev.indiepaper.co%2Fjs%2Fapp-bd8cc31b84395299b75da46b0aff7f78.js%3Fvsn%3Dd&_mounts=0&vsn=2.0.0" request.id="01F7JGM7C1R8Y4HNJJE5ZZHTZP" response.status=502

The app is hosted at dev.indiepaper.co

Looking at our logs, I see connections being closed from your app before we’re done processing requests on them.

“Undocumented” just means we haven’t documented this particular error yet.

1 Like

I think it has something to do with Cloudflare, I deleted the old certificate, moved domain out of cloudflare, added the certificate from fly, and then proxied through cloudflare and now everything seems to be working fine.