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

Handle bandit's get peer data exception #814

Merged

Conversation

ardhitama
Copy link
Contributor

As of bandit v1.5.7 during client disconnection it will raise "Unable to obtain transport_info: [reason]" every time it tries to get the transport info. This commit tries to handle that exception by returning nil instead of bubbling the exception.

Context: https://github.com/mtrudel/bandit/blob/b06e43dcee93c5c044b18ed8347838fc2a1728f0/lib/bandit/transport_info.ex#L26

@ardhitama ardhitama closed this Oct 22, 2024
@ardhitama ardhitama reopened this Oct 22, 2024
@ardhitama ardhitama force-pushed the handle-bandit-get-peer-data-exception branch 2 times, most recently from 9bbb8d2 to b3d3c85 Compare October 23, 2024 02:51
As of bandit v1.5.7 during client disconnection it will raise "Unable to obtain transport_info: [reason]"
everytime it tries to get the transport info. This commit tries to handle that exception by returning nil
instead of bubbling the exception.
@ardhitama ardhitama force-pushed the handle-bandit-get-peer-data-exception branch from b3d3c85 to 5eb18de Compare October 23, 2024 02:53
@whatyouhide whatyouhide merged commit 9f6f245 into getsentry:master Oct 23, 2024
4 checks passed
@ardhitama ardhitama deleted the handle-bandit-get-peer-data-exception branch October 23, 2024 09:26
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