Skip to content

Bug: no xhr breadcrumbs for error in onreadystatechange #1333

Description

@ilfa

I think it's a bug

When Raven instruments XMLHttpRequest and error occurs in onreadystatechange user function we don't see current request details in breadcrumbs for current error, because Raven log request in onreadystatechange after user code.

What is the current behavior?

Here is fiddle, just check console and see order of ravenTransport breadcrumb and setBreadcrumbCallback messages.

What is the expected behavior?

It will be great if Raven can put xhr request info in breadcrumbs for onreadystatechange too.

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