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

codepush artifacts not uploaded #233

Closed
magus opened this issue Jan 28, 2018 · 6 comments
Closed

codepush artifacts not uploaded #233

magus opened this issue Jan 28, 2018 · 6 comments

Comments

@magus
Copy link

magus commented Jan 28, 2018

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
@jamsch
Copy link

jamsch commented Feb 6, 2018

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

@jamsch
Copy link

jamsch commented Feb 14, 2018

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.

@kylealwyn
Copy link

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

@kylealwyn
Copy link

@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

@magus
Copy link
Author

magus commented Feb 23, 2018

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

@mattslight
Copy link

mattslight commented Feb 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants