Skip to content

[Android] [SentryHttpClientException] Exclusions #3244

Description

@barry-irvine

Integration

sentry-android-okhttp

Build System

Gradle

AGP Version

8.2.2

Proguard

Enabled

Version

7.4.0

Steps to Reproduce

I'm getting a number of 504 errors from https://res.cloudinary.com that I want to suppress. I am trying to suppress the error results from this domain when I add the Sentry interceptor. E.g.

  OkHttpClient.Builder().addInterceptor(SentryOkHttpInterceptor(failedRequestTargets = 
    listOf("^(?!(.*.cloudinary.com))"))).build()

Am I defining the regex incorrectly? I can't find any decent documentation on this.

Expected Result

No errors are returned for given domain name.

Actual Result

Sentry console filled with SentryHttpClientException: HTTP Client Error with status code: 504 for this domain.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugIssue type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions