You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've been hitting problems with some API calls to Hub timing out resulting in a panic due to an error being returned along with *http.Response being nil.
I've tweaked the hubclient locally (handled the nil in this single location and set a dial timeout) and was able to see that in my case the underlying error being thrown (resulting in resp == nil) was:
net/http: request canceled (Client.Timeout exceeded while awaiting headers)
The error handling should be tweaked to account for the possibility of resp being nil.
The text was updated successfully, but these errors were encountered:
Hi,
I've been hitting problems with some API calls to Hub timing out resulting in a panic due to an error being returned along with
*http.Response
beingnil
.resp
isnil
here with the panic inreadResponseBody
occurring when an attempt to accessresp.Body
is made:hub-client-go/hubclient/client.go
Lines 174 to 177 in e27076a
I've tweaked the
hubclient
locally (handled the nil in this single location and set a dial timeout) and was able to see that in my case the underlying error being thrown (resulting inresp == nil
) was:The error handling should be tweaked to account for the possibility of
resp
beingnil
.The text was updated successfully, but these errors were encountered: