Skip to content

When fetch is used keepalive is the default, and Chrome only allows a POST body <= 65536 bytes in that scenario #1464

Closed
@beaugunderson

Description

@beaugunderson

What is the current behavior?

raven-js has keepalive: true in its fetchDefaults. Because of this, POSTs to Sentry using fetch will fail with a generic error if they are larger than 65536 bytes. This is smaller than Sentry's 100,000 byte limit (as I understand it). It's also smaller than the onpremise limits (which are set by uWSGI, as I understand it).

I opened this Chrome bug which helps explain further: https://bugs.chromium.org/p/chromium/issues/detail?id=871115&can=4&q=&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified

What is the expected behavior?

I expect raven-js to be able to POST messages >= 65536 without failing.

Secondarily, it would be nice if there was some logging for failed log messages (basically echoing the sentiments of the people in the 413/too large issue comments)!

Versions

raven-js: 3.24.2
macOS Chrome: 68.0.3440.84

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions