Sentry-cli: codepush artifacts not uploaded

Created on 28 Jan 2018  Â·  6Comments  Â·  Source: getsentry/sentry-cli

https://docs.sentry.io/clients/react-native/codepush/

Running the commands exactly as described in the documentation with the path to my JS. The output of the command suggests the files are uploaded and the release is created on Sentry. However there are no items under the artifacts and all crashes cannot find sourcemaps (because there is nothing there).

The artifacts upload fine from Xcode.

⇨  $SENTRY_CLI react-native codepush appName ios ./fastlane/output/js
> Fetching latest code-push package info
> Processing react-native code-push sourcemaps
> Rewriting sources
> Adding source map references
> Uploading source maps for release com.app.bundle-1.0.6-codepush:v55

Source Map Upload Report
appcenter xcode

Most helpful comment

Great, that worked! Seems so obvious I wish I had investigated sooner, thanks!

All 6 comments

Having this issue as well. Wasn't sure if it was an end user problem. The release gradle script works fine on Android but when it comes to code push releases, the artifacts aren't uploaded and come up with exactly the same output as the post above.

SENTRY_PROPERTIES=./android/sentry.properties code-push release-react appName android --outputDir build/android && sentry-cli react-native codepush AppName android ./build/android

Issue occurs on latest [email protected]. We haven't been able to debug any code push releases for a while now and are instead relying on binary releases which does upload the .js & .map files to Sentry correctly.

Having this same issue. Any updates?

screen shot 2018-02-22 at 2 03 25 pm

screen shot 2018-02-22 at 2 03 15 pm

@jamsch @magus happy to say I think I found what was up. For us, CodePush was writing bundle and map to a CodePush subdirectory under specified build dir.

screen shot 2018-02-22 at 2 10 41 pm

Adding /CodePush to path for sentry-cli command then properly found artifacts.

Full command:

sentry-cli react-native codepush App ios ios/build/CodePush

Great, that worked! Seems so obvious I wish I had investigated sooner, thanks!

Since the latest sentry-cli 1.39.1 this command you must replace 'codepush' with 'appcenter', i.e.

sentry-cli react-native appcenter App ios ios/build/CodePush

Was this page helpful?
0 / 5 - 0 ratings