Skip to content

[Android] [SentryHttpClientException] Exclusions #3244

@barry-irvine

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.

Metadata

Metadata

Assignees

Labels

BugIssue type
No fields configured for issues without a type.

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions