this post was submitted on 16 Jul 2023
1 points (100.0% liked)

Lemmy Support

4659 readers
43 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

I'm trying to get Lemmy working on Azure Container Apps. I've got it to the point where a request gets through to the lemmy-ui container, but then I see the following in the lemmy-ui logs:

2023-07-16T14:00:48.316126377Z API error: FetchError: invalid json response body at http://lemmy/api/v3/site? reason: Unexpected token '<', " 2023-07-16T14:00:48.316147985Z <!DOCTYPE "... is not valid JSON

I realise this is because something is returning HTML instead of JSON, but I don't know if it's the lemmy backend, or the ACA service proxy. I have RUST_LOG set to 'verbose' in the lemmy container, but there are no logs, except this:

023-07-16T13:40:28.655561650Z federation enabled, host is 2023-07-16T13:40:28.655587979Z Starting http server at 0.0.0.0:8536

The other thing I've tried is exposing the lemmy container directly to the internet, and when I query it I get a proper JSON response.

Anyone know of anything that might cause this?

Also, when this happens, the requests get spammed to the lemmy-ui container and it ends up consuming all the heap and then blows up. I wonder if there is a bug here somewhere.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here