New issue
Advanced search Search tips

Issue 871115 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Aug 6
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

fetch with keepalive throws if POST body is larger than 65536 bytes

Reported by blod...@gmail.com, Aug 6

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.84 Safari/537.36

Steps to reproduce the problem:
1. call fetch() with method: 'POST', keepalive: true, and a body larger than 65536 bytes (see test case)

What is the expected behavior?
The fetch() should complete, or throw an error that better describes the failure.

What went wrong?
fetch() raises this error: "TypeError: Failed to fetch"

The only search results for that error blame CORS, which is not at fault here.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 68.0.3440.84  Channel: stable
OS Version: OS X 10.13.6
Flash Version:
 
test.js
728 bytes View Download
Labels: Needs-Triage-M68
Components: Blink>Network>FetchAPI
Status: WontFix (was: Unconfirmed)
The behavior is aligned with the spec. Please see https://fetch.spec.whatwg.org/#http-network-or-cache-fetch.
Thanks so much for the fast response--I still think the error message could be improved, but I see that this behavior is part of the spec.

Sign in to add a comment