-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Extern xhr error property #319
Extern xhr error property #319
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed, please reply here (e.g.
|
Related to #317 |
Please read CONTRIBUTING.md and follow the instructions there. |
I signed it! On Fri, Apr 1, 2016 at 5:01 PM, googlebot [email protected] wrote:
|
CLAs look good, thanks! |
017646a
to
4a881b9
Compare
@joeyparrish CLA signed and test added. But the test is kind of useless as currently unit tests only run on uncompiled source... i tried to run it on compiled source but then a lot of other unrelated tests fails 😞 |
Yeah, you're right. The new test doesn't really help anything in this case. We could go ahead and drop it, IMO. |
Make it possible to access response when a request fail shaka-project#317
4a881b9
to
464384a
Compare
@joeyparrish Ok, spec file change is gone now |
Thanks! |
@joeyparrish would it be possible to get a new 1.6.x package version to npm? |
Im looking at the 2.0 code to see how we could access the response. My guess is that in |
@wader, sure I can push a new v1.6.x release with bug fixes. As for 2.0, I'd rather take another approach. You need the body of the HTTP response, correct? What if instead of passing up XHR, we attached the response text to error.data instead? |
v1.6.5 is up on npm now. Thanks! |
@joeyparrish Great! |
Requested in #319 Change-Id: I2f52519d7a45769a0d2db3c038c9c04cf7fb59c1
@wader, v2 now includes the response body in the error object. Thanks! |
@joeyparrish Thanks! and now i see that status code was already there, nice |
Make it possible to access the response when requests fails.
I tried to change to
['xhr'] =
but then the tests failed because of type errorHope it's correct to target v1.6.x branch.