Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For PUT requests, Response.url is undefined for IE 11 and Edge <= 13 #39

Open
michaelglass opened this issue Apr 5, 2018 · 1 comment

Comments

@michaelglass
Copy link

michaelglass commented Apr 5, 2018

We saw this in production against
IE 11, Edge 12, Edge 13, seems fixed on Edge 14
on
Windows 7, 8.1, and Windows 10,

Here's a test case:
https://github.com/michaelglass/repro-ie-put-bug/

The result of the Debug.log in the test case above yields:

{ status = { code = 200, message = "" }
, headers = Dict.fromList [("\ncontent-type","application/json; charset=utf-8")]
, url = <internal structure>
, body = "{\"updatedAt\":\"2018-04-05T08:48:49.587Z\"}" 
}

grabbing the output of the raw xhr request from toResponse(xhr) yields:

{
   0: <Unable to get property 'message' of undefined or null reference>,
   __proto__: { },
   DONE: 4,
   HEADERS_RECEIVED: 2,
   LOADING: 3,
   msCaching: "auto",
   onabort: null,
   onerror: null,
   onload: null,
   onloadend: null,
   onloadstart: null,
   onprogress: null,
   onreadystatechange: null,
   ontimeout: null,
   OPENED: 1,
   readyState: 4,
   response: "{"updatedAt":"2018-04-05T08:51:32.200Z"}",
   responseBody: <String expected>,
   responseText: "{"updatedAt":"2018-04-05T08:51:32.200Z"}",
   responseType: "text"
}

I couldn't get Ellie to work with IE11 but the bug reproduces fine from elm reactor.

(tagging @stoeffel as he helped here)

@process-bot
Copy link

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants