Fetch: PUT and PATCH requests fail in Microsoft Edge (with native Fetch support)

Created on 2 Jun 2016  路  3Comments  路  Source: github/fetch

This isn't an issue with your polyfill per se so feel free to close it any time. We recently noticed a number of exceptions in our app stemming from Fetch-intiated PUT requests in MS Edge that lacked a request body.

I did some digging and found that Edge's PUT requests had Content-Length: 0 so the JSON.stringify'd data we send as the body wasn't making it to the server. I also found that PATCH requests fail entirely and are never transmitted.

These requests succeed in every browser I could find that has native Fetch support. They also succeed in browsers that don't when using this polyfill.

I put together small demo Rack app here: https://github.com/javan/fetch-put-patch-demo

I'm curious if you think MS Edge is doing it right and most closely following the spec. And if not, should this polyfill step in and smooth over the inconsistency?

Thanks for your time! 鉂わ笍

Most helpful comment

I think this is probably a bug in the beta build of Edge. I reported this via Twitter based on this suggestion from Microsoft.

@javan This might be the best bug report I've ever received. Thank you so much for taking the time to create a test repository demonstrating the problem. 鉂わ笍

All 3 comments

I think this is probably a bug in the beta build of Edge. I reported this via Twitter based on this suggestion from Microsoft.

@javan This might be the best bug report I've ever received. Thank you so much for taking the time to create a test repository demonstrating the problem. 鉂わ笍

Nice, I'll close this out in favor of that Edge tracking bug.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DimitryDushkin picture DimitryDushkin  路  4Comments

shirotech picture shirotech  路  3Comments

mmocny picture mmocny  路  3Comments

codeashian picture codeashian  路  3Comments

xgqfrms-GitHub picture xgqfrms-GitHub  路  4Comments