Skip to content

HTTPClientError after upgrading sentry 6.1.0 to 6.3.0 #4408

@rklomp

Description

@rklomp

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions