Skip to content

Bug: no xhr breadcrumbs for error in onreadystatechange #1333

@ilfa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions