Skip to content

Nil Pointer access on timeout using retry #58

@ChristianLohmann

Description

@ChristianLohmann

When a request interrupts due to a client timeout and when using a retry condition function then the underlying resty.Response.RawResponse is nil. Which is pretty obvious because the remote haven't sent any. But one has to make a nil check on the RawResponse in RetryConditionFuncs because functions like resty.Response.StatusCode() access directly the underlying RawResponses fields.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions