SYNTAX_ERR: DOM Exception 12
upon HTTP GET request on Android 4.2.2 native browser
#18996
Closed
1 task done
Labels
I'm submitting a...
Current behavior
When issuing the following XHR request, it fails with message
SYNTAX_ERR: DOM Exception 12
:MyObject
is any interface.Expected behavior
The request to succeed and when subscribing to the observable, an instance of
MyObject
to be passed.Minimal reproduction of the problem with instructions
http://embed.plnkr.co/HmWRisGIUs21qkTdgdbg/
Environment
Angular version: 4.3.5
Browser:
Android 4.2 at least is claimed to be supported by Angular.
Context
I think that the problem has to do with non-supported
requestType = 'json'
on XHR requests on Android before 4.4.4: http://caniuse.com/#feat=xhr2. This Stack Overflow discussion details it: https://stackoverflow.com/questions/9845401/xmlhttprequest-responsetype-json-giving-error-syntax-err-dom-exception-12Potentially related in issue in AngularJS: angular/angular.js#6115
The text was updated successfully, but these errors were encountered: