fetch with keepalive throws if POST body is larger than 65536 bytes
Reported by
blod...@gmail.com,
Aug 6
|
|||
Issue descriptionUserAgent: 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:
,
Aug 6
,
Aug 6
The behavior is aligned with the spec. Please see https://fetch.spec.whatwg.org/#http-network-or-cache-fetch.
,
Aug 6
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 |
|||
Comment 1 by vamshi.kommuri@chromium.org
, Aug 6