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

[Reporting] Fix unhandled promise rejection thrown when launching Chromium #118119

Merged

Conversation

tsullivan
Copy link
Member

@tsullivan tsullivan commented Nov 9, 2021

Summary

Closes #113472

This PR rewrites a throw err; within an observable to use observer.error(error); return; instead.

Checklist

Delete any items that are not applicable to this PR.

@tsullivan tsullivan requested a review from dokmic November 9, 2021 23:18
@tsullivan tsullivan added release_note:skip Skip the PR/issue when compiling release notes Team:AppServicesUx v8.0.0 v8.1.0 labels Nov 9, 2021
@tsullivan tsullivan marked this pull request as ready for review November 10, 2021 01:31
@tsullivan tsullivan requested review from a team as code owners November 10, 2021 01:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-reporting-services (Team:Reporting Services)

Copy link
Contributor

@dokmic dokmic left a comment

Choose a reason for hiding this comment

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

Looks good to me since the build failures are not related to the change.

@tsullivan
Copy link
Member Author

@elasticmachine merge upstream

@tsullivan tsullivan enabled auto-merge (squash) November 10, 2021 19:12
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

@tsullivan tsullivan merged commit 3d7209c into elastic:main Nov 10, 2021
tsullivan added a commit to tsullivan/kibana that referenced this pull request Nov 11, 2021
…omium (elastic#118119)

* [Reporting] Fix unhandled promise rejection thrown when launching Chromium

* comment correction

* simplify

* unit test

* Update x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.ts

Co-authored-by: Michael Dokolin <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Michael Dokolin <[email protected]>
tsullivan added a commit that referenced this pull request Nov 11, 2021
…omium (#118119) (#118284)

* [Reporting] Fix unhandled promise rejection thrown when launching Chromium

* comment correction

* simplify

* unit test

* Update x-pack/plugins/reporting/server/browsers/chromium/driver_factory/index.ts

Co-authored-by: Michael Dokolin <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Michael Dokolin <[email protected]>

Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Michael Dokolin <[email protected]>
@tsullivan tsullivan deleted the reporting/handle-puppeteer-launch-rejection branch November 11, 2021 23:58
@sophiec20 sophiec20 added the (Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
(Deprecated) Feature:Reporting Use Reporting:Screenshot, Reporting:CSV, or Reporting:Framework instead release_note:skip Skip the PR/issue when compiling release notes v8.0.0 v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Reporting] Low memory on the server should not cause an unhandled promise rejection
5 participants