sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

[Android] Gradle release build fails to upload source map (task :app:bundleReleaseJsAndAssets)

Open AlexUzan opened this issue 7 years ago • 2 comments

OS: MacOS

Platform: Android

Output of node -v && npm -v && npm ls --prod --depth=0

v8.12.0
6.8.0
[email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku
├── @react-native-community/[email protected] invalid
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected] invalid
├── [email protected] invalid
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET DEPENDENCY react-native-screens@github:Mobeye/react-native-screens#update/androidX
├── [email protected] invalid
├── [email protected]
├── [email protected]
├── [email protected] invalid
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]

npm ERR! peer dep missing: react-native@^0.54.0, required by [email protected]
npm ERR! missing: react-native-screens@github:Mobeye/react-native-screens#update/androidX, required by [email protected]
npm ERR! invalid: @react-native-community/[email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/@react-native-community/netinfo
npm ERR! invalid: [email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/react-native-camera
npm ERR! invalid: [email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/react-native-gesture-handler
npm ERR! extraneous: [email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/react-native-gesture-handler/node_modules/hoist-non-react-statics
npm ERR! invalid: [email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/react-native-sentry
npm ERR! extraneous: @sentry/[email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/@sentry/wizard
npm ERR! extraneous: [email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/raven-js
npm ERR! invalid: [email protected] /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/react-native-webview

Config:

Sentry.config('https://[email protected]/...', {
    deactivateStacktraceMerging: false, // default: true | Deactivates the stack trace merging feature
    logLevel: SentryLog.Debug, // default SentryLog.None | Possible values:  .None, .Error, .Debug, .Verbose
    disableNativeIntegration: false, // default: false | Deactivates the native integration and only uses raven-js
    handlePromiseRejection: true // default: true | Handle unhandled promise rejections}).install()

I have following issue:

When i run ./gradlew assembleRelease the build fails on task Task :app:bundleReleaseJsAndAssets_SentryUpload

Here is the console output

> Configure project :react-native-screens
WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()'.
It will be removed at the end of 2019.
For more information, see https://d.android.com/r/tools/task-configuration-avoidance.
To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.

> Configure project :react-native-webview
:react-native-webview:reactNativeAndroidRoot /Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/react-native/android

> Task :app:bundleReleaseJsAndAssets FAILED

> Task :app:bundleReleaseJsAndAssets_SentryUpload
  INFO    2019-05-24 17:16:41.263369 +02:00 Loaded config from /Users/alexandre/.sentryclirc
  DEBUG   2019-05-24 17:16:41.265049 +02:00 sentry-cli version: 1.44.1, platform: "darwin", architecture: "x86_64"
  INFO    2019-05-24 17:16:41.265078 +02:00 sentry-cli was invoked with the following command line: "/Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/@sentry/cli/sentry-cli" "--log-level" "debug" "react-native" "gradle" "--bundle" "/Users/alexandre/Desktop/Work/MobeyeProDooku/android/app/build/generated/assets/react/release/index.android.bundle" "--sourcemap" "/Users/alexandre/Desktop/Work/MobeyeProDooku/android/app/build/generated/assets/react/release/index.android.bundle.map" "--release" "com.mobeye.dooku-0.0.1" "--dist" "42" "--dist" "41" "--dist" "43" "--dist" "44"
Processing react-native sourcemaps for Sentry upload.
  INFO    2019-05-24 17:16:41.268760 +02:00   bundle path: /Users/alexandre/Desktop/Work/MobeyeProDooku/android/app/build/generated/assets/react/release/index.android.bundle
  INFO    2019-05-24 17:16:41.268817 +02:00   sourcemap path: /Users/alexandre/Desktop/Work/MobeyeProDooku/android/app/build/generated/assets/react/release/index.android.bundle.map
  DEBUG   2019-05-24 17:16:41.269629 +02:00 Non-file bundle found
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
  DEBUG   2019-05-24 17:16:41.711542 +02:00 request POST https://sentry.io/api/0/projects/mobeye/focus/releases/
  DEBUG   2019-05-24 17:16:41.711590 +02:00 using token authentication
  DEBUG   2019-05-24 17:16:41.711608 +02:00 json body: {"version":"com.mobeye.dooku-0.0.1","projects":["focus"]}
  DEBUG   2019-05-24 17:16:41.711953 +02:00 retry number 0, max retries: 0
  DEBUG   2019-05-24 17:16:42.073779 +02:00 > POST /api/0/projects/mobeye/focus/releases/ HTTP/1.1
  DEBUG   2019-05-24 17:16:42.073822 +02:00 > Host: sentry.io
  DEBUG   2019-05-24 17:16:42.073837 +02:00 > Accept: */*
  DEBUG   2019-05-24 17:16:42.073851 +02:00 > Connection: TE
  DEBUG   2019-05-24 17:16:42.073864 +02:00 > TE: gzip
  DEBUG   2019-05-24 17:16:42.073877 +02:00 > User-Agent: sentry-cli/1.44.1
  DEBUG   2019-05-24 17:16:42.074561 +02:00 > Authorization: Bearer 21b465e9***
  DEBUG   2019-05-24 17:16:42.074581 +02:00 > Content-Type: application/json
  DEBUG   2019-05-24 17:16:42.074606 +02:00 > Content-Length: 57
  DEBUG   2019-05-24 17:16:42.278354 +02:00 < HTTP/1.1 208 ALREADY REPORTED
  DEBUG   2019-05-24 17:16:42.278407 +02:00 < Server: nginx
  DEBUG   2019-05-24 17:16:42.278433 +02:00 < Date: Fri, 24 May 2019 15:16:42 GMT
  DEBUG   2019-05-24 17:16:42.278455 +02:00 < Content-Type: application/json
  DEBUG   2019-05-24 17:16:42.278477 +02:00 < Content-Length: 412
  DEBUG   2019-05-24 17:16:42.278499 +02:00 < Connection: keep-alive
  DEBUG   2019-05-24 17:16:42.278521 +02:00 < X-XSS-Protection: 1; mode=block
  DEBUG   2019-05-24 17:16:42.278590 +02:00 < Content-Language: en
  DEBUG   2019-05-24 17:16:42.278648 +02:00 < X-Content-Type-Options: nosniff
  DEBUG   2019-05-24 17:16:42.278675 +02:00 < Vary: Accept-Language, Cookie
  DEBUG   2019-05-24 17:16:42.278693 +02:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2019-05-24 17:16:42.278712 +02:00 < X-Frame-Options: deny
  DEBUG   2019-05-24 17:16:42.278731 +02:00 < X-Served-By: web-c9683d4c
  DEBUG   2019-05-24 17:16:42.278748 +02:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2019-05-24 17:16:42.278814 +02:00 response status: 208
  DEBUG   2019-05-24 17:16:42.278853 +02:00 body: {"dateReleased": null, "commitCount": 0, "url": null, "data": {}, "lastDeploy": null, "deployCount": 0, "dateCreated": "2019-05-24T10:25:19.400Z", "lastEvent": "2019-05-24T14:17:22Z", "version": "com.mobeye.dooku-0.0.1", "firstEvent": "2019-05-24T12:29:11Z", "lastCommit": null, "shortVersion": "0.0.1", "authors": [], "owner": null, "newGroups": 1, "ref": null, "projects": [{"slug": "focus", "name": "Focus"}]}
Uploading sourcemaps for release com.mobeye.dooku-0.0.1 distribution 42
  DEBUG   2019-05-24 17:16:42.285147 +02:00 request GET https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor=
  DEBUG   2019-05-24 17:16:42.285192 +02:00 using token authentication
  DEBUG   2019-05-24 17:16:42.285210 +02:00 retry number 0, max retries: 0
  DEBUG   2019-05-24 17:16:42.285435 +02:00 > GET /api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor= HTTP/1.1
  DEBUG   2019-05-24 17:16:42.285460 +02:00 > Host: sentry.io
  DEBUG   2019-05-24 17:16:42.285477 +02:00 > Accept: */*
  DEBUG   2019-05-24 17:16:42.285491 +02:00 > Connection: TE
  DEBUG   2019-05-24 17:16:42.285506 +02:00 > TE: gzip
  DEBUG   2019-05-24 17:16:42.285519 +02:00 > User-Agent: sentry-cli/1.44.1
  DEBUG   2019-05-24 17:16:42.285556 +02:00 > Authorization: Bearer 21b465e9***
  DEBUG   2019-05-24 17:16:42.445353 +02:00 < HTTP/1.1 200 OK
  DEBUG   2019-05-24 17:16:42.445401 +02:00 < Server: nginx
  DEBUG   2019-05-24 17:16:42.445424 +02:00 < Date: Fri, 24 May 2019 15:16:42 GMT
  DEBUG   2019-05-24 17:16:42.445444 +02:00 < Content-Type: application/json
  DEBUG   2019-05-24 17:16:42.445463 +02:00 < Content-Length: 2582
  DEBUG   2019-05-24 17:16:42.445481 +02:00 < Connection: keep-alive
  DEBUG   2019-05-24 17:16:42.445497 +02:00 < Vary: Accept-Encoding
  DEBUG   2019-05-24 17:16:42.445514 +02:00 < X-XSS-Protection: 1; mode=block
  DEBUG   2019-05-24 17:16:42.445531 +02:00 < X-Content-Type-Options: nosniff
  DEBUG   2019-05-24 17:16:42.445550 +02:00 < Content-Language: en
  DEBUG   2019-05-24 17:16:42.445566 +02:00 < Vary: Accept-Language, Cookie
  DEBUG   2019-05-24 17:16:42.445586 +02:00 < Link: <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:-1:1>; rel="previous"; results="false"; cursor="100:-1:1", <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:1:0>; rel="next"; results="false"; cursor="100:1:0"
  DEBUG   2019-05-24 17:16:42.445604 +02:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2019-05-24 17:16:42.445622 +02:00 < X-Frame-Options: deny
  DEBUG   2019-05-24 17:16:42.445640 +02:00 < X-Served-By: web-c401c6a4
  DEBUG   2019-05-24 17:16:42.445661 +02:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2019-05-24 17:16:42.445707 +02:00 response status: 200
  DEBUG   2019-05-24 17:16:42.446378 +02:00 body: [{"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "44", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:50.560Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103275", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "43", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:47.983Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103147", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "41", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:45.079Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103003", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "42", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:42.375Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353102895", "size": 1685046}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "44", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:54:13.170Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353104554", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "43", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:53:49.482Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353103220", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "41", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:53:46.603Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353103073", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "42", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:53:42.113Z", "header> Uploading source maps for release com.mobeye.dooku-0.0.1
s": {"Content-Type": "application/octet-stream"}, "id": "353102884", "size": 6538839}, {"sha1": "4cdca40e0208845e2ac91633cfd3013874047e41", "dist": "4", "name": "~/main.jsbundle", "dateCreated": "2019-05-24T12:38:53.355Z", "headers": {"Sourcemap": "main.jsbundle.map", "Content-Type": "application/octet-stream"}, "id": "352876191", "size": 1674581}, {"sha1": "5a683d1f856eb3b7853ae412a5af3f0ee8492cdb", "dist": "4", "name": "~/main.jsbundle.map", "dateCreated": "2019-05-24T12:39:00.806Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "352876388", "size": 6483470}]

  DEBUG   2019-05-24 17:16:45.960851 +02:00 request GET https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor=
  DEBUG   2019-05-24 17:16:45.960918 +02:00 using token authentication
Source Map Upload Report
  Minified Scripts
  DEBUG   2019-05-24 17:16:45.960947 +02:00 retry number 0, max retries: 0
  DEBUG   2019-05-24 17:16:45.961170 +02:00 > GET /api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor= HTTP/1.1
  DEBUG   2019-05-24 17:16:45.961196 +02:00 > Host: sentry.io
    ~/index.android.bundle (sourcemap at index.android.bundle.map)
  Source Maps
  DEBUG   2019-05-24 17:16:45.961209 +02:00 > Accept: */*
  DEBUG   2019-05-24 17:16:45.961221 +02:00 > Connection: TE
  DEBUG   2019-05-24 17:16:45.961239 +02:00 > TE: gzip
    ~/index.android.bundle.map
  DEBUG   2019-05-24 17:16:45.961250 +02:00 > User-Agent: sentry-cli/1.44.1
Uploading sourcemaps for release com.mobeye.dooku-0.0.1 distribution 41
  DEBUG   2019-05-24 17:16:45.961282 +02:00 > Authorization: Bearer 21b465e9***
  DEBUG   2019-05-24 17:16:46.110080 +02:00 < HTTP/1.1 200 OK
  DEBUG   2019-05-24 17:16:46.110130 +02:00 < Server: nginx
  DEBUG   2019-05-24 17:16:46.110154 +02:00 < Date: Fri, 24 May 2019 15:16:46 GMT
  DEBUG   2019-05-24 17:16:46.110178 +02:00 < Content-Type: application/json
  DEBUG   2019-05-24 17:16:46.110201 +02:00 < Content-Length: 2582
  DEBUG   2019-05-24 17:16:46.110222 +02:00 < Connection: keep-alive
  DEBUG   2019-05-24 17:16:46.110244 +02:00 < Vary: Accept-Encoding
  DEBUG   2019-05-24 17:16:46.110265 +02:00 < X-XSS-Protection: 1; mode=block
> Uploading source maps for release com.mobeye.dooku-0.0.1
  DEBUG   2019-05-24 17:16:46.110285 +02:00 < X-Content-Type-Options: nosniff
  DEBUG   2019-05-24 17:16:46.110306 +02:00 < Content-Language: en
  DEBUG   2019-05-24 17:16:46.110329 +02:00 < Vary: Accept-Language, Cookie
  DEBUG   2019-05-24 17:16:46.110352 +02:00 < Link: <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:-1:1>; rel="previous"; results="false"; cursor="100:-1:1", <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:1:0>; rel="next"; results="false"; cursor="100:1:0"
  DEBUG   2019-05-24 17:16:46.110373 +02:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2019-05-24 17:16:46.110395 +02:00 < X-Frame-Options: deny
  DEBUG   2019-05-24 17:16:46.110414 +02:00 < X-Served-By: web-b378b859
  DEBUG   2019-05-24 17:16:46.110434 +02:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2019-05-24 17:16:46.110509 +02:00 response status: 200
  DEBUG   2019-05-24 17:16:46.110600 +02:00 body: [{"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "42", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T15:16:45.867Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353163026", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "44", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:50.560Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103275", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "43", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:47.983Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103147", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "41", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:45.079Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103003", "size": 1685046}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "42", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T15:16:44.836Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353163021", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "44", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:54:13.170Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353104554", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "43", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:53:49.482Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353103220", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "41", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:53:46.603Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353103073", "size": 6538839}, {"sha1": "4cdca40e0208845e2ac91633cfd3013874047e41", "dist": "4", "name": "~/main.jsbundle", "dateCreated": "2019-05-24T12:38:53.355Z", "headers": {"Sourcemap": "main.jsbundle.map", "Content-Type": "application/octet-stream"}, "id": "352876191", "size": 1674581}, {"sha1": "5a683d1f856eb3b7853ae412a5af3f0ee8492cdb", "dist": "4", "name": "~/main.jsbundle.map", "dateCreated": "2019-05-24T12:39:00.806Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "352876388", "size": 6483470}]

Source Map Upload Report
  DEBUG   2019-05-24 17:16:54.870628 +02:00 request GET https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor=
  DEBUG   2019-05-24 17:16:54.870665 +02:00 using token authentication
  DEBUG   2019-05-24 17:16:54.870679 +02:00 retry number 0, max retries: 0
  DEBUG   2019-05-24 17:16:54.870845 +02:00 > GET /api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor= HTTP/1.1
  DEBUG   2019-05-24 17:16:54.870862 +02:00 > Host: sentry.io
  DEBUG   2019-05-24 17:16:54.870873 +02:00 > Accept: */*
  DEBUG   2019-05-24 17:16:54.870883 +02:00 > Connection: TE
  Minified Scripts
    ~/index.android.bundle (sourcemap at index.android.bundle.map)
  Source Maps
  DEBUG   2019-05-24 17:16:54.870893 +02:00 > TE: gzip
    ~/index.android.bundle.map
Uploading sourcemaps for release com.mobeye.dooku-0.0.1 distribution 43
  DEBUG   2019-05-24 17:16:54.870903 +02:00 > User-Agent: sentry-cli/1.44.1
  DEBUG   2019-05-24 17:16:54.870931 +02:00 > Authorization: Bearer 21b465e9***
  DEBUG   2019-05-24 17:16:55.155897 +02:00 < HTTP/1.1 200 OK
  DEBUG   2019-05-24 17:16:55.155928 +02:00 < Server: nginx
  DEBUG   2019-05-24 17:16:55.155942 +02:00 < Date: Fri, 24 May 2019 15:16:54 GMT
  DEBUG   2019-05-24 17:16:55.155976 +02:00 < Content-Type: application/json
  DEBUG   2019-05-24 17:16:55.155995 +02:00 < Content-Length: 2582
  DEBUG   2019-05-24 17:16:55.156008 +02:00 < Connection: keep-alive
  DEBUG   2019-05-24 17:16:55.156018 +02:00 < Vary: Accept-Encoding
  DEBUG   2019-05-24 17:16:55.156028 +02:00 < X-XSS-Protection: 1; mode=block
> Uploading source maps for release com.mobeye.dooku-0.0.1
  DEBUG   2019-05-24 17:16:55.156056 +02:00 < X-Content-Type-Options: nosniff
  DEBUG   2019-05-24 17:16:55.156077 +02:00 < Content-Language: en
  DEBUG   2019-05-24 17:16:55.156088 +02:00 < Vary: Accept-Language, Cookie
  DEBUG   2019-05-24 17:16:55.156098 +02:00 < Link: <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:-1:1>; rel="previous"; results="false"; cursor="100:-1:1", <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:1:0>; rel="next"; results="false"; cursor="100:1:0"
  DEBUG   2019-05-24 17:16:55.156109 +02:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2019-05-24 17:16:55.156119 +02:00 < X-Frame-Options: deny
  DEBUG   2019-05-24 17:16:55.156128 +02:00 < X-Served-By: web-c401c6a4
  DEBUG   2019-05-24 17:16:55.156138 +02:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2019-05-24 17:16:55.156164 +02:00 response status: 200
  DEBUG   2019-05-24 17:16:55.156219 +02:00 body: [{"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "41", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T15:16:47.504Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353163038", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "42", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T15:16:45.867Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353163026", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "44", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:50.560Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103275", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "43", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:47.983Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103147", "size": 1685046}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "41", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T15:16:54.740Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353163167", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "42", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T15:16:44.836Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353163021", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "44", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:54:13.170Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353104554", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "43", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:53:49.482Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353103220", "size": 6538839}, {"sha1": "4cdca40e0208845e2ac91633cfd3013874047e41", "dist": "4", "name": "~/main.jsbundle", "dateCreated": "2019-05-24T12:38:53.355Z", "headers": {"Sourcemap": "main.jsbundle.map", "Content-Type": "application/octet-stream"}, "id": "352876191", "size": 1674581}, {"sha1": "5a683d1f856eb3b7853ae412a5af3f0ee8492cdb", "dist": "4", "name": "~/main.jsbundle.map", "dateCreated": "2019-05-24T12:39:00.806Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "352876388", "size": 6483470}]

Source Map Upload Report
  Minified Scripts
    ~/index.android.bundle (sourcemap at index.android.bundle.map)
  DEBUG   2019-05-24 17:16:57.857179 +02:00 request GET https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor=
  DEBUG   2019-05-24 17:16:57.857211 +02:00 using token authentication
  Source Maps
    ~/index.android.bundle.map
  DEBUG   2019-05-24 17:16:57.857224 +02:00 retry number 0, max retries: 0
  DEBUG   2019-05-24 17:16:57.857392 +02:00 > GET /api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?cursor= HTTP/1.1
  DEBUG   2019-05-24 17:16:57.857410 +02:00 > Host: sentry.io
  DEBUG   2019-05-24 17:16:57.857421 +02:00 > Accept: */*
  DEBUG   2019-05-24 17:16:57.857432 +02:00 > Connection: TE
  DEBUG   2019-05-24 17:16:57.857477 +02:00 > TE: gzip
Uploading sourcemaps for release com.mobeye.dooku-0.0.1 distribution 44
  DEBUG   2019-05-24 17:16:57.857499 +02:00 > User-Agent: sentry-cli/1.44.1
  DEBUG   2019-05-24 17:16:57.857530 +02:00 > Authorization: Bearer 21b465e9***
  DEBUG   2019-05-24 17:16:58.005190 +02:00 < HTTP/1.1 200 OK
  DEBUG   2019-05-24 17:16:58.005239 +02:00 < Server: nginx
  DEBUG   2019-05-24 17:16:58.005261 +02:00 < Date: Fri, 24 May 2019 15:16:57 GMT
  DEBUG   2019-05-24 17:16:58.005280 +02:00 < Content-Type: application/json
  DEBUG   2019-05-24 17:16:58.005299 +02:00 < Content-Length: 2582
  DEBUG   2019-05-24 17:16:58.005317 +02:00 < Connection: keep-alive
  DEBUG   2019-05-24 17:16:58.005334 +02:00 < Vary: Accept-Encoding
  DEBUG   2019-05-24 17:16:58.005350 +02:00 < X-XSS-Protection: 1; mode=block
> Uploading source maps for release com.mobeye.dooku-0.0.1
  DEBUG   2019-05-24 17:16:58.005367 +02:00 < X-Content-Type-Options: nosniff
  DEBUG   2019-05-24 17:16:58.005387 +02:00 < Content-Language: en
  DEBUG   2019-05-24 17:16:58.005405 +02:00 < Vary: Accept-Language, Cookie
  DEBUG   2019-05-24 17:16:58.005423 +02:00 < Link: <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:-1:1>; rel="previous"; results="false"; cursor="100:-1:1", <https://sentry.io/api/0/projects/mobeye/focus/releases/com.mobeye.dooku-0.0.1/files/?&cursor=100:1:0>; rel="next"; results="false"; cursor="100:1:0"
  DEBUG   2019-05-24 17:16:58.005443 +02:00 < Allow: GET, POST, HEAD, OPTIONS
  DEBUG   2019-05-24 17:16:58.005460 +02:00 < X-Frame-Options: deny
  DEBUG   2019-05-24 17:16:58.005477 +02:00 < X-Served-By: web-0df6213e
  DEBUG   2019-05-24 17:16:58.005494 +02:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
  DEBUG   2019-05-24 17:16:58.005554 +02:00 response status: 200
  DEBUG   2019-05-24 17:16:58.005628 +02:00 body: [{"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "43", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T15:16:57.179Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353163221", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "41", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T15:16:47.504Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353163038", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "42", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T15:16:45.867Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353163026", "size": 1685046}, {"sha1": "04a8e4c2baaaace6dea8c8e054d6ccf45132ba5d", "dist": "44", "name": "~/index.android.bundle", "dateCreated": "2019-05-24T14:53:50.560Z", "headers": {"Sourcemap": "index.android.bundle.map", "Content-Type": "application/octet-stream"}, "id": "353103275", "size": 1685046}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "43", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T15:16:57.722Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353163235", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "41", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T15:16:54.740Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353163167", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "42", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T15:16:44.836Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353163021", "size": 6538839}, {"sha1": "1acb33c8c66f6336f12d6f8d2328d770800dd40e", "dist": "44", "name": "~/index.android.bundle.map", "dateCreated": "2019-05-24T14:54:13.170Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "353104554", "size": 6538839}, {"sha1": "4cdca40e0208845e2ac91633cfd3013874047e41", "dist": "4", "name": "~/main.jsbundle", "dateCreated": "2019-05-24T12:38:53.355Z", "headers": {"Sourcemap": "main.jsbundle.map", "Content-Type": "application/octet-stream"}, "id": "352876191", "size": 1674581}, {"sha1": "5a683d1f856eb3b7853ae412a5af3f0ee8492cdb", "dist": "4", "name": "~/main.jsbundle.map", "dateCreated": "2019-05-24T12:39:00.806Z", "headers": {"Content-Type": "application/octet-stream"}, "id": "352876388", "size": 6483470}]

Source Map Upload Report
  Minified Scripts
    ~/index.android.bundle (sourcemap at index.android.bundle.map)
  Source Maps
    ~/index.android.bundle.map

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture fingerprint of input files for task ':app:bundleReleaseJsAndAssets' property '$1' during up-to-date check.
> Could not list contents of '/Users/alexandre/Desktop/Work/MobeyeProDooku/node_modules/react-native-sentry/appium/example'. Couldn't follow symbolic link.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 37s
49 actionable tasks: 43 executed, 6 up-to-date

The build works in debug mode (./gradlew assembleDebug)

It is worth noting that I am working on Android X, so I use a fork of react-native-sentry (up to date with master as of now) where the only change is in the file android/src/main/java/io/sentry/RNSentryModule.java : import android.support.annotation.NonNull; -> import androidx.annotation.NonNull;

Steps to reproduce:

  • Step 1: Fork react-native-sentry master and make the change I described above
  • Step 2: Run ./gradlew assembleDebug (it should work)
  • Step 3: Run ./gradlew assembleRelease (it should fail)

Actual result:

  • Actual: Failure described above

Expected result:

  • Result: The build should succeed

AlexUzan avatar May 24 '19 15:05 AlexUzan

I solved my issue which was due to the fork I created containing folders matching .npmignore. Since my fork doesn't go through the npm publish process, these files would be present in my node_modules and cause an error. I just removed them and now it's all good and working. Closing the issue

AlexUzan avatar May 27 '19 08:05 AlexUzan

In my case simple ./gradlew clean was helpful

stas-kravchuk avatar Dec 30 '19 09:12 stas-kravchuk