sentry-javascript: RavenVue / Vue plugins: 413 Request Entity Too Large
I’m just getting started with Sentry/Raven. I’d like to get this running in Vue 2, but I’m experiencing an issue that might be a bug, or at least requires better documentation.
Environment
Vue 2, Webpack 2, raven-js via yarn (npm). Attempting to use RavenVue and Vue plugins with .addPlugin(RavenVue, Vue).
What is the current behavior?
When using RavenVue and Vue plugins, I get a 413 (Request Entity Too Large) error response. If I delete data.extra.propsData in the config’s dataCallback, the request will go through. What is the size limit, 100k (#339)?
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (3 by maintainers)
@bjunc for now I settled with removing the fields unconditionally but this seems like a good approach as well. I wish Sentry provided an add-on to allow going over the limit.
@bjunc
https://github.com/getsentry/sentry-docs/pull/310
tl;dr
200kB, or 64kB you use
keepalive:truein fetchno, it’s not JS SDK limitation, but rather a whole system’s
old SDK:
dataCallbacknew SDK:beforeSendor event processors once we document them fully100k, then send the whole thing. If not, go through and prune See my implementation of this approach here: https://github.com/getsentry/sentry-javascript/issues/874#issuecomment-379731186 which can be easily modified to be used in the Vue. We’ll most likely provide more straightforward solution moving forward.