-
Notifications
You must be signed in to change notification settings - Fork 25
When the redux state is really big, the request to sentry fails due to Request too large
#42
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
Comments
I suppose I could use the |
But also the conditions here: https://docs.sentry.io/learn/quotas/#attributes-limits seem quite limiting |
Noting that now More info at getsentry/sentry-javascript#1464 |
I just noticed this happening while I was testing errors in development, and now I'm really worried that I've been missing a lot of error reports in production! I'm using This should be a huge warning at the top of the README. I also think that I imagine that this issue has probably caused thousands of error reports to be silently dropped, so this is a huge problem that users should be aware of. |
@captbaritone I just saw your workaround here: getsentry/sentry-javascript#339 (comment) EDIT: Ah there was a bug in your code (or sentry-javascript has changed). We need to call EDIT 2: Should also note that the maximum payload size has been increased to 200KB: https://docs.sentry.io/clients/javascript/usage/#raven-js-additional-context |
one note; that workaround is out of date now (but sadly i didn’t keep the newer version i ended up with)
…---
Sent from my phone.
On Oct 13, 2018, at 01:51, Nathan Broadbent ***@***.***> wrote:
@captbaritone I just saw your workaround here: getsentry/sentry-javascript#339 (comment)
I think it would be awesome if this was part of raven-for-redux
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@beaugunderson Yeah I needed to make a few changes to get it working. I ended up with a solution and have opened a PR: #95 I've tested this in development and have written some tests that are all passing, so it seems to work pretty well. I'm going to deploy it to production now and see if there are any issues. |
Sooooo I've actually come to the conclusion that raven-for-redux and redux-raven-middleware are not the best idea. Even with all my 413 error handling and
I came up with a new approach that I'm going to try out:
Basically I'm going stop sending any Redux state to Sentry. I'm going to add some API endpoints to my own application, and store the compressed state in my own S3 bucket. Then I'll just send that URL to Sentry. The API specification should be really easy to implement if you're already using S3 and you have authentication for admin users. Let me know if you're interested in contributing a library for other languages/frameworks, like Django, Laravel, Spring, etc. I've started a repo here, in case anyone wants to follow along: https://github.com/FormAPI/raven-redux-rails) |
Uh oh!
There was an error while loading. Please reload this page.
I'm not sure this is the responsibility of this library, however I'm running into a
413 Request Entity too large
issue with our redux state being too big.getsentry/sentry-javascript#339
The text was updated successfully, but these errors were encountered: