Skip to content

Commit a23f2ca

Browse files
committed
fix(browser): Avoid 4xx response for succesful diagnoseSdkConnectivity tests
1 parent f342341 commit a23f2ca

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/browser/src/diagnose-sdk.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ export async function diagnoseSdkConnectivity(): Promise<
2525
try {
2626
// If fetch throws, there is likely an ad blocker active or there are other connective issues.
2727
await fetch(
28-
// We want this to be as close as possible to an actual ingest URL so that ad blockers will actually block the request
29-
// We are using the "sentry-sdks" org with id 447951 not to pollute any actual organizations.
30-
'https://o447951.ingest.sentry.io/api/1337/envelope/?sentry_version=7&sentry_key=1337&sentry_client=sentry.javascript.browser%2F1.33.7',
28+
// We are using the
29+
// - "sentry-sdks" org with id 447951 not to pollute any actual organizations.
30+
// - "diagnose-sdk-connectivity" project with id 4509632503087104
31+
// - the public key of said org/project, which is disabled in the project settings
32+
// => this DSN: https://[email protected]/4509632503087104 (i.e. disabled)
33+
'https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7',
3134
{
3235
body: '{}',
3336
method: 'POST',

0 commit comments

Comments
 (0)