question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: no xhr breadcrumbs for error in onreadystatechange

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
stefan-hccommented, Jun 8, 2020

Fixed. The order in the universe is restored once again. ☕

0reactions
kamilogorekcommented, Jun 8, 2020

@stefan-hc 5.17.0 has been released. Let me know if that fixed it for you

Read more comments on GitHub >

github_iconTop Results From Across the Web

XMLHttpRequest (Ajax) Error - javascript - Stack Overflow
I see 2 possible problems: Problem 1. the XMLHTTPRequest object has not finished loading the data at the ...
Read more >
@bugsnag/js | Yarn - Package Manager
Bugsnag error monitoring & reporting for JavaScript. Automatically detect JavaScript errors in the browser, Node.js and React Native, with plugins for React ...
Read more >
Changelog - Cypress Documentation
Fixed a bug where the cypress/svelte cy.mount() command was not logging by ... stack error would throw in some circumstances when xhr.onreadystatechange is ......
Read more >
[0] at end of XHR message in breadcrumbs - #sentry
But we don't consider it a “bug” that these breadcrumbs appear. It can be valuable to understand if a request was canceled leading...
Read more >
Code coverage report for node-npmtest-raven-js ...
This is // expected behavior and NOT indicative of a bug with ... capture the breadcrumb xhr.onreadystatechange = onreadystatechangeHandler; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found