Skip to content

Internal exception when a breadcrumb has data with url: null #1128

Description

@StevePotter

Do you want to request a feature or report a bug?
bug

What is the current behavior?
If you have a null data property called 'url', the library has internal errors.

Just try this:

Raven.captureMessage('Installation referral url received.', {
  level: 'info',
  tags: { installationReferralUrl: true },
  extra: { url: null },
})

The exception comes from:
https://github.com/getsentry/raven-js/blob/master/src/raven.js#L1609

Just put a check for a null value or modify truncate to return empty string for null values

What is the expected behavior?
It will not have said error.

React Native, raven-js v3.13.1

Activity

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

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