The error is not being emitted by Lemmy though. The 502 error message is returned to the client by nginx when the Lemmy server doesn't respond within the a certain time.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments