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

HTTPClientError after upgrading sentry 6.1.0 to 6.3.0 #4408

Closed
rklomp opened this issue Jan 1, 2025 · 1 comment
Closed

HTTPClientError after upgrading sentry 6.1.0 to 6.3.0 #4408

rklomp opened this issue Jan 1, 2025 · 1 comment

Comments

@rklomp
Copy link

rklomp commented Jan 1, 2025

What React Native libraries do you use?

Expo Application Services (EAS), Expo (mobile only), React Navigation

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.3.0

How does your development environment look like?

expo: 52.0.20
react: 18.3.1
react-native: 0.76.5

Sentry.init()

Sentry.init({
  dsn: '***',
  integrations: [
    Sentry.reactNativeErrorHandlersIntegration({
      onunhandledrejection: false
    })
  ]
})

Steps to Reproduce

HTTPClientErrors are logged to sentry on iOS since updating from 6.1.0 to 6.3.0. Have not seen any logs from android.

Might be related to #4250

Expected Result

No log

Actual Result

A log is send to sentry

Stack Trace
    -[SentryStacktraceBuilder buildStacktraceForCurrentThread] (SentryStacktraceBuilder.m:104)
    -[SentryThreadInspector getCurrentThreads] (SentryThreadInspector.m:113)
    -[SentryClient prepareEvent:withScope:alwaysAttachStacktrace:isCrashEvent:] (SentryClient.m:683)
    -[SentryClient sendEvent:withScope:alwaysAttachStacktrace:isCrashEvent:additionalEnvelopeItems:] (SentryClient.m:449)
    -[SentryHub captureEvent:withScope:additionalEnvelopeItems:] (SentryHub.m:325)
    +[SentrySDK captureEvent:withScope:] (SentrySDK.m:291)
    +[SentrySDK captureEvent:] (SentrySDK.m:279)
    -[SentryNetworkTracker captureFailedRequests:] (SentryNetworkTracker.m:465)
    -[SentryNetworkTracker urlSessionTask:setState:] (SentryNetworkTracker.m:340)
@antonis
Copy link
Collaborator

antonis commented Jan 2, 2025

Thank you for reporting @rklomp 🙇
This should be fixed with #4347 on the next Sentry react-native SDK version.

@getsantry getsantry bot removed the status in GitHub Issues with 👀 3 Jan 2, 2025
@rklomp rklomp closed this as completed Jan 2, 2025
@github-project-automation github-project-automation bot moved this from Needs Discussion to Done in Mobile & Cross Platform SDK Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Status: Done
Development

No branches or pull requests

2 participants