Coder Social home page Coder Social logo

Comments (11)

keshavkaul avatar keshavkaul commented on July 30, 2024 3

@bullmo The docs aren't helpful. It's been over 10hrs of futile efforts to upload source maps. Having react-native support should ideally have this feature built in as most of the code being executed is in Javascript and not native. Please improve the docs and the library. Thanks!

from bugsnag-react-native.

Andreyco avatar Andreyco commented on July 30, 2024

#35 is pretty much related. URL parsing is probably not working correctly on Android.

My findings are that bundle names are following:

  • iOS: main.jsbundle
  • Android: index.android.js

from bugsnag-react-native.

bullmo avatar bullmo commented on July 30, 2024

@Andreyco The uploaded source maps get applied to an error report if the minifiedUrl in the upload matches the file/url in the stacktrace and the appVersion matches the app version or versionCode.

The FAQ in the docs gives help on how to identify some common issues with applying source maps.

Please can you contact [email protected] with a link to an error that isn't showing the stacktrace correctly (and reference this issue) so we can investigate why it isn't working for you.

from bugsnag-react-native.

bullmo avatar bullmo commented on July 30, 2024

I'm closing this in preference for assisting via support. We can update the docs if the findings are useful for others.

from bugsnag-react-native.

Twinski avatar Twinski commented on July 30, 2024

I agree with @keshavkaul. I'm struggling as well with setting up sourcemaps properly. Does it need the dSYM uploaded to Bugsnag or not? Or do we only need the sourcemap there? Nevertheless, I tried both and it's not working for development-mode.

My setup:
React native app running on iOS.

Any help is appreciated! :)

from bugsnag-react-native.

john1jan avatar john1jan commented on July 30, 2024

I am also facing the same issue. I use this command to upload source map

bugsnag-sourcemaps upload \ --api-key MY_API_KEY \ --app-version 3.1 \ --minified-file index.android.bundle \ --source-map index.android.sourcemap.js \ --minified-url index.android.bundle \ --upload-sources

Even I can see my source map uploaded in Bugsnag

screen shot 2018-02-14 at 8 15 49 pm

But my error is still minified, check out the event details below

screen shot 2018-02-14 at 8 16 59 pm

screen shot 2018-02-14 at 8 17 14 pm

I have even checked all these things

  • App version is matching with uploaded version
  • Event is sent after uploaded source map
  • --minified-file is matching the uploaded source map file name

Any help would be appreciated. Or I have to switch to some other error reporting tool.

from bugsnag-react-native.

avinashwigroup avatar avinashwigroup commented on July 30, 2024

Do we have an update on this?

from bugsnag-react-native.

fractalwrench avatar fractalwrench commented on July 30, 2024

@avinashwigroup if you're encountering source map issues we'd recommend contacting [email protected] - if you think you've encountered a bug, then feel free to open a new GitHub issue and I'll take a look.

from bugsnag-react-native.

mphasak avatar mphasak commented on July 30, 2024

Please do consider updating the docs with modern / clear info... we've spent a lot of time ourselves on this, will be contacting support but it'd be nice if the docs were accurate. Also the bugsnag-sourcemaps cli tool fails without giving any info as to why it failed 😕

from bugsnag-react-native.

fabOnReact avatar fabOnReact commented on July 30, 2024

yes, indeed I am experiencing the same issue and not capable of configuring source maps. I also can see my sourcemaps uploaded with the same version of package.json but the errors are minified

from bugsnag-react-native.

abigailbramble avatar abigailbramble commented on July 30, 2024

Hi @fabriziobertoglio1987 - thanks for reaching out!

It is worth noting that we released a separate API for use with React Native source maps which we'd recommend using, full instructions here:
https://docs.bugsnag.com/platforms/react-native/react-native/showing-full-stacktraces/#uploading-source-maps

It is important to use the React Native source map upload API and not the Javascript source map upload API

Using the React Native source map upload API it will just match based on Android/iOS and release/debug variants so if you upload the correct source map variant with a matching appVersion / appVersionCode(Android) / appBundleVersion(iOS) / codeBundleID it should be applied to any new errors. Matching on codeBundleID takes precedence over application version.

If the version or codeBundleID does not match what is being reported in your error, then it will not be applied. You can check what is being uploaded in 'Settings > uploaded source maps' and your version and codeBundleID information should be visible on the 'APP' tab of your error.

If this information is all things that you are already doing, then please write into [email protected] and we will take a look at your account :)

from bugsnag-react-native.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.