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

Preserve the original error name instead of returning raw AbortError #57550

Merged
merged 4 commits into from
Feb 14, 2020

Conversation

pgayvallet
Copy link
Contributor

Summary

Fix #56244

  • Add name attribute to HttpFetchError and initialize it with the underlying error
  • Stop handling AbortError as a special case in fetchResponse

Checklist

For maintainers

@pgayvallet pgayvallet added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 labels Feb 13, 2020
@pgayvallet pgayvallet requested a review from a team as a code owner February 13, 2020 11:25
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform (Team:Platform)

@pgayvallet pgayvallet requested a review from a team February 13, 2020 11:26
@pgayvallet
Copy link
Contributor Author

pgayvallet commented Feb 13, 2020

@lukasolson @kobelb does this need to be backported to 7.6.1 ?

@pgayvallet
Copy link
Contributor Author

retest

@lukasolson
Copy link
Member

@pgayvallet No, 7.7 should be fine.

Copy link
Contributor

@kobelb kobelb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - this fixes the error that the Security plugins response error interceptor was previously throwing. Thanks @pgayvallet!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@pgayvallet pgayvallet merged commit 302c598 into elastic:master Feb 14, 2020
pgayvallet added a commit to pgayvallet/kibana that referenced this pull request Feb 14, 2020
…lastic#57550)

* Preserve the original error name instead of returning raw AbortError

* use Error as the default error name
pgayvallet added a commit that referenced this pull request Feb 14, 2020
…57550) (#57653)

* Preserve the original error name instead of returning raw AbortError

* use Error as the default error name
@lukasolson
Copy link
Member

lukasolson commented Feb 27, 2020

Actually, it would be nice if we could get this in 7.6.1, how difficult would it be to backport this and #55061? (See #58749)

@pgayvallet
Copy link
Contributor Author

@lukasolson This one should be trivial to backport to 7.6.1. Not sure about #55061 though. @restrry ?

pgayvallet added a commit to pgayvallet/kibana that referenced this pull request Feb 28, 2020
…lastic#57550)

* Preserve the original error name instead of returning raw AbortError

* use Error as the default error name
pgayvallet added a commit that referenced this pull request Feb 28, 2020
…57550) (#58842)

* Preserve the original error name instead of returning raw AbortError

* use Error as the default error name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:New Platform release_note:skip Skip the PR/issue when compiling release notes Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.6.1 v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core HTTP fetch returns incorrect error when a request is aborted
6 participants