req icon indicating copy to clipboard operation
req copied to clipboard

Mint.TransportError - socket closed

Open sergiotapia opened this issue 1 year ago • 5 comments

(Mint.TransportError) socket closed\\n (req 0.4.8) lib/req.ex:1029: Req.request!/

It's quite hard to find a repro for this bug it's frequent enough that it shows up regularly on my Oban jobs and even when running code in iex -S mix phx.server. To fix I just need to re-run it, or let the Oban job retry.

image

Any ideas why this would happen so frequently? Again, I appreciate it's hard to debug without more repro steps but happy to figure out how to find that repro case!

Urls where this happens:

OpenAI's API, HowLongtoBeat's API, Target's RedSky API.

sergiotapia avatar Feb 24 '24 21:02 sergiotapia