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

fix(AjaxObservable): notify with error if fails to parse json response #3139

Merged
merged 2 commits into from
Jul 26, 2018

Conversation

myklt
Copy link
Contributor

@myklt myklt commented Nov 28, 2017

Catch error when parsing json response and notify observer with thrown error.
JSON could be invalid if proxy overtakes the response and in IE responseType is empty.

closes #3138

Description:
Please find description under the issue. This is my first PR to rxjs, so any feedback is welcome.

Related issue (if exists): #3138

@coveralls
Copy link

coveralls commented Nov 28, 2017

Coverage Status

Coverage decreased (-0.03%) to 96.717% when pulling 38bc6a1 on myklt:master into f9318d8 on ReactiveX:master.

@OliverJAsh
Copy link
Contributor

Any updates on this?

@benlesh
Copy link
Member

benlesh commented Mar 30, 2018

Given this PR is massively in conflict, I'm not sure it can be merged. But I think the work here is important. Labelling it for refactor.

Catch error when parsing json response and notify observer with thrown error.
JSON could be invalid if proxy overtakes the response and in IE responseType is empty.

closes ReactiveX#3138
@cartant
Copy link
Collaborator

cartant commented Jul 7, 2018

@benlesh I've rebased and refactored this PR.

@benlesh benlesh merged commit d8231e2 into ReactiveX:master Jul 26, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unhandled exception is thrown if AjaxObservable fails to parse response
5 participants