Skip to content

_normalizeUrl is never called, so sourcemaps aren't connecting (react native) #772

@sjafri5

Description

@sjafri5

Hi, so the problem on a macro scale is that the sourcemaps are not matching to the minified code in the stacktraces.

When I upload the artifacts with their full name (i.e. file:///var/mobile/Containers/Bundle/Application/CF21C92F-695D-47E8-9B63-F5EB40DE0A2F/my-app.app/main.jsbundle) I get full stack traces. This obviously not scalable since the full url has a specific deviceID.

This seemed to be a problem with an updated pathname that the regex didn't cover (#665) but that has been updated and I can confirm that the new regex captures everything except the tail (/main.jsbundle).

So it seems that the issue is that the reactNativePlugin._normalizeUrl (which is where the stripping occurs) isn't being called. It seems that the method _normalizeData only calls _normalizeUrl if either data.exception or data.culprit exist. When i run this with debugger, they skip over both of these conditionals. However the JSON that shows up in on server shows a data.culprit with the full URL.

Any help would be greatly appreciated.

I am using raven 3.8 and react-native 0.33

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions