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
The fasthttp integration can panic when converting a fasthttp context into an *http.Request.
*http.Request
If the URL parsing fails at
sentry-go/fasthttp/sentryfasthttp.go
Line 151 in 24ffea5
this panics,
Line 170 in 24ffea5
and while that panic is caught,
Lines 140 to 144 in 24ffea5
that means that this line panics now, since r is now nil.
r
Line 73 in 24ffea5
No panics.
[not applicable]
sentry-go
The solution is to either always return a non-nil request from convert or not expect that r is always non-nil in Handle.
convert
Handle
The text was updated successfully, but these errors were encountered:
A fix was released in version 0.30.0.
Sorry, something went wrong.
ribice
Successfully merging a pull request may close this issue.
Summary
The fasthttp integration can panic when converting a fasthttp context into an
*http.Request
.Steps To Reproduce
If the URL parsing fails at
sentry-go/fasthttp/sentryfasthttp.go
Line 151 in 24ffea5
this panics,
sentry-go/fasthttp/sentryfasthttp.go
Line 170 in 24ffea5
and while that panic is caught,
sentry-go/fasthttp/sentryfasthttp.go
Lines 140 to 144 in 24ffea5
that means that this line panics now, since
r
is now nil.sentry-go/fasthttp/sentryfasthttp.go
Line 73 in 24ffea5
Expected Behavior
No panics.
Screenshots
[not applicable]
Sentry.io Event
[not applicable]
Environment
SDK
sentry-go
version: v0.29.1Sentry
[not applicable]
Additional context
The solution is to either always return a non-nil request from
convert
or not expect that r is always non-nil inHandle
.The text was updated successfully, but these errors were encountered: