Skip to content

Handle bandit's get peer data exception #814

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

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Handle bandit's get peer data exception #814

merged 1 commit into from
Oct 23, 2024

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
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.
@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.

None yet

2 participants