Lemmy debug help - eviltoast

I’m trying to get Lemmy up and running on Azure Container Apps, and I’ve almost got it working.

Right now, I can get a request from a remote client (via Cloudflare) all the way through nginx and into the lemmy UI, but I’m getting this in the lemmy UI logs:

API error: FetchError: invalid json response body at http://lemmy--13fdtu8.internal.jollysky-9d68b8d3.uksouth.azurecontainerapps.io/api/v3/site? reason: Unexpected end of JSON input

That URL is the container apps FQDN for the lemmy backend container. I have no idea what’s causing this error, as there is nothing in the lemmy backend container logs. I have RUST_LOG set to ‘verbose’. I have a sinking feeling it’s the container Envoy proxy blocking it and it’s not getting to the backend.

This manifests itself as a 500 error in the browser.

Does anyone know how I can debug this?

The thing about container apps is all traffic between the containers is HTTPS, so I’ve had to make a few adjustments for that. It all works fine in normal kubernetes.

The other thing to mention, is I can’t pass this proxy header through, as it causes a 403 error, I think because of a hostname mismatch in the SSL handshake. Does anyone know if that will break anything?