Skip to content

:app:bundleReleaseJsAndAssets FAILED #381

@flyingxu

Description

@flyingxu

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

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

v6.11.3
5.6.0
CCCCCCCCCC@0.0.1 /Users/user/Documents/github/CcccApp/CCCCCCCCCC
├── async-lock@1.1.0
├── react@16.0.0
├── react-native@0.51.0
├── react-native-check-box@2.0.2
├── react-native-datepicker@1.6.0
├── react-native-fcm@10.0.3
├── react-native-gesture-handler@1.0.0-alpha.36
├── react-native-keychain@1.2.1
├── react-native-linear-gradient@2.4.0
├── react-native-modal@5.3.0
├── react-native-segmented-control-tab@3.2.1
├── react-native-sentry@0.35.3
├── react-native-simple-dialogs@0.3.1
├── react-native-tab-view@0.0.73
├── react-native-vector-icons@4.4.3
├── react-navigation@1.0.0-beta.22
├── react-redux@5.0.6
└── redux@3.7.2

Config:
default:

Sentry.config('https://...@sentry.io/...').install();


I have following issue:

The android release build failed at

error: http error: [55] Failed sending data to the peer (SSL_write() returned SYSCALL, errno = 32)
:app:bundleReleaseJsAndAssets FAILED

Steps to reproduce:

  • ./gradlew assembleRelease

Actual result:

  • Error above

Expected result:

  • Should pass the building.

Some additional information:
I added

project.ext.sentryCli = [
    logLevel: "debug"
]

before

apply from: "../../node_modules/react-native-sentry/sentry.gradle"

and the output is:

> Analyzing 2 sources
[INFO] sentry_cli::commands::react_native_gradle   bundle path: /Users/user/Documents/github/CcccApp/CCCCCCCCCC/android/app/build/intermediates/assets/release/index.android.bundle
[INFO] sentry_cli::commands::react_native_gradle   sourcemap path: /Users/user/Documents/github/CcccApp/CCCCCCCCCC/android/app/build/intermediates/assets/release/index.android.bundle.map
> Rewriting sources
> Adding source map references
[INFO] sentry_cli::api request POST https://sentry.io/api/0/projects/sentry-account/CCCCCCCCCC/releases/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api sending JSON data (60 bytes)
[INFO] sentry_cli::api > POST /api/0/projects/sentry-account/CCCCCCCCCC/releases/ HTTP/1.1
[INFO] sentry_cli::api > Host: sentry.io
[INFO] sentry_cli::api > Accept: */*
[INFO] sentry_cli::api > Connection: TE
[INFO] sentry_cli::api > TE: gzip
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.30.3
[INFO] sentry_cli::api > Authorization: Bearer b51af821***
[INFO] sentry_cli::api > Content-Type: application/json
[INFO] sentry_cli::api > Content-Length: 60
[INFO] sentry_cli::api < HTTP/1.1 208 ALREADY REPORTED
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 25 Mar 2018 11:41:00 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 389
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, POST, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
[INFO] sentry_cli::api < X-Served-By: web-e3e9e887
[INFO] sentry_cli::api < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
[INFO] sentry_cli::api response: 208
[INFO] sentry_cli::api body: {"lastDeploy": null, "dateCreated": "2018-03-25T11:08:55.362Z", "lastEvent": null, "shortVersion": "1.0", "authors": [], "owner": null, "newGroups": 0, "data": {}, "projects": [{"slug": "CCCCCCCCCC", "name": "CCCCCCCCCC"}], "dateReleased": null, "url": null, "deployCount": null, "commitCount": null, "version": "com.CCCCCCCCCC-1.0", "firstEvent": null, "lastCommit": null, "ref": null}
Uploading sourcemaps for release com.CCCCCCCCCC-1.0 distribution 20180319
[INFO] sentry_cli::api request GET https://sentry.io/api/0/projects/sentry-account/CCCCCCCCCC/releases/com.CCCCCCCCCC-1.0/files/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api > GET /api/0/projects/sentry-account/CCCCCCCCCC/releases/com.CCCCCCCCCC-1.0/files/ HTTP/1.1
[INFO] sentry_cli::api > Host: sentry.io
[INFO] sentry_cli::api > Accept: */*
[INFO] sentry_cli::api > Connection: TE
[INFO] sentry_cli::api > TE: gzip
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.30.3
[INFO] sentry_cli::api > Authorization: Bearer b51af821***
[INFO] sentry_cli::api < HTTP/1.1 200 OK
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 25 Mar 2018 11:41:03 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 2
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Link: <https://sentry.io/api/0/projects/sentry-account/CCCCCCCCCC/releases/com.CCCCCCCCCC-1.0/files/?&cursor=100:-1:1>; rel="previous"; results="false"; cursor="100:-1:1", <https://sentry.io/api/0/projects/sentry-account/CCCCCCCCCC/releases/com.CCCCCCCCCC-1.0/files/?&cursor=100:1:0>; rel="next"; results="false"; cursor="100:1:0"
[INFO] sentry_cli::api < Allow: GET, POST, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
[INFO] sentry_cli::api < X-Served-By: web-29de7051
> Uploading source maps for release com.CCCCCCCCCC-1.0
[INFO] sentry_cli::api < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
[INFO] sentry_cli::api response: 200
[INFO] sentry_cli::api body: []
[INFO] sentry_cli::api request POST https://sentry.io/api/0/projects/sentry-account/CCCCCCCCCC/releases/com.CCCCCCCCCC-1.0/files/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api sending form data
[INFO] sentry_cli::api > POST /api/0/projects/sentry-account/CCCCCCCCCC/releases/com.CCCCCCCCCC-1.0/files/ HTTP/1.1
[INFO] sentry_cli::api > Host: sentry.io
[INFO] sentry_cli::api > Accept: */*
[INFO] sentry_cli::api > Connection: TE
[INFO] sentry_cli::api > TE: gzip
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.30.3
[INFO] sentry_cli::api > Authorization: Bearer b51af821***
[INFO] sentry_cli::api > Content-Length: 4196976
[INFO] sentry_cli::api > Content-Type: multipart/form-data; boundary=------------------------4c77aa8435997e88
error: http error: [55] Failed sending data to the peer (SSL_write() returned SYSCALL, errno = 32)
:app:bundleReleaseJsAndAssets FAILED

output of ls -lah android/app/build/intermediates/assets/release

total 5080
drwxr-xr-x   7 user  staff   224B Mar 25 19:08 .
drwxr-xr-x   3 user  staff    96B Mar 12 17:43 ..
-rw-r--r--   1 user  staff    60B Mar 12 17:43 appcenter-config.json
drwxr-xr-x  13 user  staff   416B Mar 12 17:43 fonts
-rw-r--r--   1 user  staff   1.0M Mar 25 19:40 index.android.bundle
-rw-r--r--   1 user  staff   1.5M Mar 25 19:40 index.android.bundle.map
-rw-r--r--   1 user  staff    21B Mar 25 19:40 index.android.bundle.meta

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions