[Webkit-unassigned] [Bug 173295] [Fetch API] TypeError when called with body === {}

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 13 19:21:23 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=173295

--- Comment #4 from Aleksandr Motsjonov <soswow at gmail.com> ---
I think I found what was the problem. We were setting body === {}.
As soon as I removed "body" property for the second argument in these cases - it started working again.

It seems like you guys are ok within requirements:

> body: Any body that you want to add to your request: this can be a Blob, BufferSource, FormData, URLSearchParams, or USVString object. Note that a request using the GET or HEAD method cannot have a body.

But error message could be more descriptive. + the fact all other browsers work with actual object didn't help =)

I think this can be closed if you decide so.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170614/4acce7bc/attachment-0001.html>


More information about the webkit-unassigned mailing list