Sentry-react-native: task bundleReleaseJsAndAssets_SentryUpload not run.

Created on 9 May 2020  路  2Comments  路  Source: getsentry/sentry-react-native

OS:

  • [ ] Windows
  • [*] MacOS
  • [ ] Linux

Platform:

  • [ ] iOS
  • [*] Android

SDK:

  • [*] @sentry/react-native
  • [ ] react-native-sentry

SDK version: @sentry/react-native: 1.3.7
react-native version: 0.61.5

Are you using Expo?

  • [ ] Yes
  • [*] No (but it's installed)

Are you using sentry.io or on-premise?

  • [*] sentry.io (SaaS)
  • [ ] on-premise

Configuration:

Sentry.init({
  dsn: 'https://[email protected]/...'
});

I have following issue: bundleReleaseJsAndAssets_SentryUpload not get run.

Description goes here ...

bundleReleaseJsAndAssets_SentryUpload not get run even it's scheduled run after bundleReleaseJsAndAssets by the finalizedBy code (traced by IntelliJ IDEA so the finalizedBy line did run).
./gradlew tasks can list task bundleReleaseJsAndAssets_SentryUpload, but it's gone when really run ./gradlew assembleRelease
with --info got the "Sentry-CLI arguments" line printed, but when really run those tasks, bundleReleaseJsAndAssets_SentryUpload is missing though bundleReleaseJsAndAssets did run.

so there must be something happened which caused the task created, and hooked, but not finally run. I'm not familar with gradle and android system, so any idea what could cause this?

Actual result:

  • bundleReleaseJsAndAssets_SentryUpload is not run, source map is not uploaded

Expected result:

  • bundleReleaseJsAndAssets_SentryUpload is run after bundleReleaseJsAndAssets, and source map uploaded.
Android gradle

Most helpful comment

@ericmatte Thank you for notify. that's quite a hidden configuration. This should be documented in case user inactivite the upload by accident.

All 2 comments

@ulion I had the same problem, and removing org.gradle.configureondemand=true in gradle.properties fixed it.
https://github.com/getsentry/sentry-react-native/issues/815#issuecomment-610977587

@ericmatte Thank you for notify. that's quite a hidden configuration. This should be documented in case user inactivite the upload by accident.

Was this page helpful?
0 / 5 - 0 ratings