greg
September 26, 2022, 3:46pm
2
Hmm
Given that particular error message, could this be the cause? Depends on your app and what it’s doing etc but certainly sounds similar, with a timeout/cancel:
Aha, I think I might know the issue: the app sets a relatively tight deadline for writing the response to the client, so it might close the connection before the client has finished reading it. Let me try adjusting that timeout to see if it has any impact on these 502s. (I should have thought of this before posting here, I’m sorry for the noise if this turns out to be the problem!)
The app is written in Go and “resolves” shortened URLs, primarily from social media.