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

No releases detected in sentry.io #4375

Open
knro opened this issue Dec 14, 2024 · 12 comments
Open

No releases detected in sentry.io #4375

knro opened this issue Dec 14, 2024 · 12 comments

Comments

@knro
Copy link

knro commented Dec 14, 2024

What React Native libraries do you use?

React Native without Frameworks

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

6.4.0

How does your development environment look like?

info Fetching system and libraries information...
System:
  OS: Linux 6.8 KDE neon 6.2 6.2
  CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
  Memory: 28.22 GB / 62.71 GB
  Shell:
    version: 5.2.21
    path: /bin/bash
Binaries:
  Node:
    version: 20.9.0
    path: ~/.nvm/versions/node/v20.9.0/bin/node
  Yarn:
    version: 4.4.0
    path: ~/.nvm/versions/node/v20.9.0/bin/yarn
  npm:
    version: 10.1.0
    path: ~/.nvm/versions/node/v20.9.0/bin/npm
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "23"
      - "28"
      - "29"
      - "30"
      - "31"
      - "33"
      - "34"
    Build Tools:
      - 30.0.2
      - 30.0.3
      - 31.0.0
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-29 | Google APIs Intel x86 Atom
      - android-29 | Google Play Intel x86 Atom
      - android-30 | Google APIs Intel x86 Atom
      - android-30 | Google APIs Intel x86_64 Atom
      - android-33 | Google APIs Intel x86_64 Atom
    Android NDK: Not Found
IDEs:
  Android Studio: AI-231.9392.1.2311.11255304
Languages:
  Java:
    version: 21.0.5
    path: /usr/bin/javac
  Ruby:
    version: 3.2.3
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 11.3.8
    wanted: 11.3.8
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.2
    wanted: 0.74.2
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: false

Sentry.init()

            dsn: "....",
			environment: __DEV__ ? "staging" : "production",
			release: "com.ikarustech.stellarmate@" + appInfo.version,
			dist: appInfo.build,
			tracesSampleRate: 0.02,
			appHangTimeoutInterval: 3.5, //3.5 seconds
			ignoreErrors: ["Non-Error exception captured"],
			experiments: {
				replaysSessionSampleRate: 0,
				replaysOnErrorSampleRate: 1.0,
			},
			integrations: [
				new Sentry.ReactNativeTracing({
					tracingOrigins: ["localhost", /^\//],
					// ... other options
				}),
				Sentry.mobileReplayIntegration(),
			],
		});

Steps to Reproduce

  1. Run app
  2. Press "Try!" button

Expected Result

  1. Should appear in issues on Sentry.io
  2. Release version should be listed

Actual Result

We noticed that we have been missing Sentry releases for a couple of months now. The sentry-cli debug upload process appears to be working just fine, no errors reported. On sentry.io, we cannot find any releases over the past 3 months. I just tried to make a release now and nothing appear on the site despite a successful upload. Furthermore, I tried to test the exception:

Sentry.captureException(new Error("First error"));

But nothing was reported on Sentry.io as well. We're not sure what do to next.

@krystofwoldrich
Copy link
Member

Hi @knro,
thank you for the message,

please add debug:true to your Sentry.init and share with us the JS logs.


If it's possible to reproduce the issue in a new sample app that would speed up the debugging.


Does it happen on Android or iOS or both?

@getsantry getsantry bot moved this to Waiting for: Community in GitHub Issues with 👀 3 Dec 17, 2024
@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 17, 2024
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3 Dec 17, 2024
@krystofwoldrich krystofwoldrich moved this from Needs Discussion to Needs More Information in Mobile & Cross Platform SDK Dec 17, 2024
@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 17, 2024
@getsantry getsantry bot moved this from Waiting for: Product Owner to Waiting for: Community in GitHub Issues with 👀 3 Dec 17, 2024
@knro
Copy link
Author

knro commented Dec 18, 2024

This was tested on Android, but we also don't see any iOS releases either on Sentry. Here are some logs from Android logcat:

2024-12-18 18:26:48.422 23658-23658 Sentry                  com.ikarustech.stellarmate           D  io.sentry.auto-init read: false
2024-12-18 18:26:50.396 23658-23748 unknown:Vi...rtyUpdater com.ikarustech.stellarmate           W  Could not find generated setter for class io.sentry.react.RNSentryOnDrawReporterManager
2024-12-18 18:26:50.396 23658-23748 unknown:Vi...rtyUpdater com.ikarustech.stellarmate           W  Could not find generated setter for class io.sentry.react.replay.RNSentryReplayMaskManager
2024-12-18 18:26:50.397 23658-23748 unknown:Vi...rtyUpdater com.ikarustech.stellarmate           W  Could not find generated setter for class io.sentry.react.replay.RNSentryReplayUnmaskManager

From JS Side, I get this:

 ERROR  Sentry Logger [error]: Failed to extract url from DSN [Error: URL.protocol is not implemented] [Component Stack]
 LOG  Sentry Logger [log]: Integration installed: ReactNativeErrorHandlers
 LOG  Sentry Logger [log]: Integration installed: NativeLinkedErrors
 LOG  Sentry Logger [log]: Integration installed: InboundFilters
 LOG  Sentry Logger [log]: Integration installed: FunctionToString
 LOG  Sentry Logger [log]: Integration installed: Breadcrumbs
 LOG  Sentry Logger [log]: Integration installed: Dedupe
 LOG  Sentry Logger [log]: Integration installed: HttpContext
 LOG  Sentry Logger [log]: Integration installed: Release
 LOG  Sentry Logger [log]: Integration installed: EventOrigin
 LOG  Sentry Logger [log]: Integration installed: SdkInfo
 LOG  Sentry Logger [log]: Integration installed: ReactNativeInfo
 LOG  Sentry Logger [log]: Integration installed: RewriteFrames
 LOG  Sentry Logger [log]: Integration installed: DeviceContext
 LOG  Sentry Logger [log]: Integration installed: ModulesLoader
 LOG  Sentry Logger [log]: Integration installed: DebugSymbolicator

We double checked and the DSN is indeed correct.

@getsantry getsantry bot moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 18, 2024
@kahest
Copy link
Member

kahest commented Dec 19, 2024

@knro thanks for the logs - I don't think the DSN error is related (@antonis can you take a look? I think you added this).

Do you see any error events or other data for this app in Sentry? If you could give us a link to your sentry.io org, we can also investigate (you can share via [email protected] if you prefer).

Also please note that we're winding down for the holidays, so responses will be slower than usual.

@antonis
Copy link
Collaborator

antonis commented Dec 19, 2024

Thank you for the ping @kahest 🙇

ERROR Sentry Logger [error]: Failed to extract url from DSN [Error: URL.protocol is not implemented] [Component Stack]

I will have a look and iterate back.

@knro
Copy link
Author

knro commented Dec 19, 2024

No errors for stellarmateapp2 on sentry. You can check our site: https://ikarus-technologies.sentry.io/

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 19, 2024
@kahest
Copy link
Member

kahest commented Dec 19, 2024

@knro I see a new release created yesterday, but it has a different naming scheme. There's also a handful of errors in the last 14 days, so there is some stream of incoming data but something is off. Did you change how you build/configure releases or update the Sentry SDK around September/October?

We'll look into the logs and init you sent us and update with findings.

@knro
Copy link
Author

knro commented Dec 19, 2024

I don't believe so. We used Codepush, but not sure if this is a factor, it was working OK with codepush before. Btw, we are moving to our own hosted Codepush server now that Microsoft is shutting down Codepush managed by them, so hopefully we can continue to use that.

Sentry.init({
					dsn: "https://....",
					environment: __DEV__ ? "staging" : "production",
					debug: true,
					release:
						"com.ikarustech.stellarmate@" +
						update.appVersion +
						"+codepush:" +
						update.label,
					dist: update.label,
					tracesSampleRate: 0.02,
					appHangTimeoutInterval: 3.5, //3.5 seconds
					ignoreErrors: ["Non-Error exception captured"],
					experiments: {
						replaysSessionSampleRate: 0,
						replaysOnErrorSampleRate: 1.0,
					},
					integrations: [
						new Sentry.ReactNativeTracing({
							tracingOrigins: ["localhost", /^\//],
							// ... other options
						}),
						Sentry.mobileReplayIntegration(),
					],
				}); 

@antonis
Copy link
Collaborator

antonis commented Dec 19, 2024

Thank you for the provided information @knro 🙇

I've noticed that some of the options used in your init have changed (e.g. ReactNativeTracing) after v5 and you are using our latest stable SDK (6.4.0). Could check our migration guide from 5.x to 6.x in case something is missing?

Your updated init could look like the following:

Sentry.init({
  dsn: "https://....",
  environment: __DEV__ ? "staging" : "production",
  debug: true,
  release:
    "com.ikarustech.stellarmate@" +
    update.appVersion +
    "+codepush:" +
    update.label,
  dist: update.label,
  tracesSampleRate: 0.02,
  appHangTimeoutInterval: 3.5, //3.5 seconds
  ignoreErrors: ["Non-Error exception captured"],
  _experiments: {
    replaysSessionSampleRate: 0,
    replaysOnErrorSampleRate: 1.0,
  },
  tracePropagationTargets: ['localhost', /^\//],
  integrations: [Sentry.mobileReplayIntegration()],
});

@antonis
Copy link
Collaborator

antonis commented Dec 19, 2024

ERROR Sentry Logger [error]: Failed to extract url from DSN [Error: URL.protocol is not implemented] [Component Stack]

I've opened a PR to improve the url extraction from the DNS. This should be unrelated with the reported issue though and the only side effect is that dev server requests are not excluded from breadcrumbs.

@knro
Copy link
Author

knro commented Dec 20, 2024

I prepared a new release, and I noticed this during Android assembleRelease

> Task :app:createBundleReleaseJsAndAssets_SentryCollectModules_com.ikarustech.stellarmate@2.7.41+127410_127410
....
  INFO    2024-12-20 13:07:21.902807258 +03:00 Loaded file referenced by SENTRY_PROPERTIES (/home/jasem/Projects/development/stellarmate/stellarmateapp2/android/sentry.properties)
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
Uploading sourcemaps for release [email protected]+127410 distribution 127410
> Bundled 2 files for upload
> Bundle ID: ed5ac27b-659c-5d3f-8a1e-10e7c248d1dd
> Nothing to upload, all files are on the server
> File processing complete
> Organization: ikarus-technologies
> Project: stellarmate-app
> Release: [email protected]+127410
> Dist: 127410
> Upload type: artifact bundle

However, I can't see 2.7.41 yet in the releases online. Not sure if it takes a while to process or there is still an issue?

Furthermore, when we release for codepush, the release is like this: [email protected]+codepush:v247

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 20, 2024
@knro
Copy link
Author

knro commented Dec 21, 2024

Still not 2.7.41 release appearing on sentry.io even though I changed Sentry.init as per the suggestion above.

@antonis
Copy link
Collaborator

antonis commented Dec 23, 2024

Thank you for testing the provided Sentry init configuration @knro 🙇
The provided Android logs indicate that the release is uploaded. We will investigate this and get back to you.
Please note that due to holidays our responses will be slower than usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Status: Needs More Information
Development

No branches or pull requests

4 participants