-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
raven - capture breadcrumb on failed request #1293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
i dont understand the lint error
|
Yes, you should be able to do this just fine |
@kamilogorek that seems like gratuitous coding around the linter, instead of removing an unnecessary lint rule or just adding a flag to ignore the lint rule in this case |
and yet this is what |
hmm, TIL |
@kamilogorek ready to go if it looks good to you |
I was trying to find this explanation and post it here. Thanks :) |
@kamilogorek thanks/ looking forward to getting this live to help diagnose some of our sentry reports 😸 |
@kumavis released as |
Still, doesn't work TypeError: Failed to fetch v: raven-js : 3.24.2 |
@Xurma2 note that this doesnt re-add the stack, its just supposed to add a breadcrumb @kamilogorek doesnt seem like its actually adding the breadcrumb, but not sure why relevant code is now here sentry-javascript/packages/raven-js/src/raven.js Lines 1486 to 1496 in a01b4ee
|
@kumavis would you mind giving new v4 SDK a try? We are only supporting security/major issues in old raven-js for quite some time now. In new SDK it's handled here though -
|
@kamilogorek i dont know why i didnt see it before -- but I do see the |
Fixes #1009
If there is an issue performing the request (not an error response from the server), we don't get any data about what failed, only a
TypeError: Failed to Fetch
with no trace or hint of what was being fetched.With this change, we capture a breadcrumb indicating that the fetch failed, then re-throw the error.
If there is no additional
catch
in the chain, this will result in an unhandled promise rejection with the original unhelpful error message:TypeError: Failed to Fetch
.Question: can you set a log level on a
type: 'http'
breadcrumb? will this be rendered correctly in Sentry?