Skip to content
New issue

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

Include response body in status error (#1) #20

Merged
merged 2 commits into from
Jul 20, 2024
Merged

Include response body in status error (#1) #20

merged 2 commits into from
Jul 20, 2024

Conversation

miguelb-gk
Copy link
Contributor

We randomly saw a spike of 403 errors when our notification service was attempting to publish messages. These errors happened within milliseconds from each other and automatically started working again. We still aren't sure what exactly happened.
In order to help debug what this issue could have been, it would be helpful to also have the HTTP response body included in the error. This PR reads the response body and includes it in ErrStatusCode.

Thanks

client.go Outdated Show resolved Hide resolved
@miguelb-gk miguelb-gk requested a review from FZambia July 19, 2024 16:33
@FZambia FZambia merged commit feec0d0 into centrifugal:master Jul 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants