We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APIError.Details was empty because the ioutil.ReadAll was reading an empty http.Response.Body.
APIError.Details
ioutil.ReadAll
http.Response.Body
The body of the response was read earlier by the decodeResponse func before attempting to read it again in newAPIError.
decodeResponse
newAPIError
Changed the signature of decodeResponse to accept a []byte as the second argument.
Example commit. Check changes made to paystack.go and error.go
The text was updated successfully, but these errors were encountered:
No branches or pull requests
APIError.Details
was empty because theioutil.ReadAll
was reading an emptyhttp.Response.Body
.The body of the response was read earlier by the
decodeResponse
func before attempting to read it again innewAPIError
.Changed the signature of
decodeResponse
to accept a []byte as the second argument.Example commit. Check changes made to paystack.go and error.go
The text was updated successfully, but these errors were encountered: