Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Source maps just started failing to upload #42

@dwilt

Description

@dwilt

Expected behavior

Source maps upload without issues

Observed behavior

We currently use AppCenter (and have been for a while successfully) to upload our sourcemaps to bugsnag after a build. Our appcenter-post-build.sh file looks like this:

bugsnag-sourcemaps upload \
--api-key [KEY GOES HERE - HIDDEN FOR PRIVACY] \
--app-version $APPCENTER_BUILD_ID \
--minified-file ios-release.bundle \
--source-map ios-release.bundle.map \
--minified-url main.jsbundle \
--upload-sources

Just today, we've been getting this error when uploading:

/Users/vsts/.nvm/versions/node/v8.16.0/bin/react-native -> /Users/vsts/.nvm/versions/node/v8.16.0/lib/node_modules/react-native-cli/index.js
+ react-native-cli@2.0.1
+ bugsnag-sourcemaps@1.2.0
added 127 packages from 52 contributors in 6.644s
Loading dependency graph, done.
info Writing bundle output to:, ios-release.bundle
info Writing sourcemap output to:, ios-release.bundle.map
info Done writing bundle output
info Done writing sourcemap output
warn Assets destination folder is not set, skipping...
�[34m[info]�[39m Uploading (ios-release.bundle.map)
�[31m[error]�[39m Error uploading source maps: Unknown read stream path of type "string"
##[error]/bin/bash failed with return code: 1
##[error]Bash failed with error: /bin/bash failed with return code: 1
##[section]Finishing: Post Build Script
##[section]Starting: Xcode build (signed)

Steps to reproduce

[Insert reproduction steps (if known)]

Version

We're using the latest since every time we spin up a build, we do a fresh install of bugsnag-sourcemaps via npm i -g react-native-cli bugsnag-sourcemaps

Additional information

appcenter-post-build.sh

# Generate sourcemaps for Bugsnag

npm i -g react-native-cli bugsnag-sourcemaps

## Create sourcemaps and bundle
react-native bundle \
--platform ios \
--dev false \
--entry-file index.js \
--bundle-output ios-release.bundle \
--sourcemap-output ios-release.bundle.map

## Upload sourcemaps to Bugsnag
bugsnag-sourcemaps upload \
--api-key [KEY] \
--app-version $APPCENTER_BUILD_ID \
--minified-file ios-release.bundle \
--source-map ios-release.bundle.map \
--minified-url main.jsbundle \
--upload-sources

Can't comment on Issues?

Some users have been unable to comment on Github issues when an adblocker extension is enabled.
We recommend temporarily disabling the extension, or if that fails, contacting support@bugsnag.com.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions