Request hangs on API request

I’ve tested some more and found that, once left for a while, the request fails with a socket hangup.