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

Handle worker thread errors more gracefully #583

Merged
merged 1 commit into from
Sep 30, 2021
Merged

Conversation

72636c
Copy link
Member

@72636c 72636c commented Sep 30, 2021

We were getting some real sketchy output:

(node:212) UnhandledPromiseRejectionWarning: Error: EBADF: bad file descriptor, close
(Use `node --trace-warnings ...` to show where the warning was created)
(node:212) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:212) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error: Worker exited without posting a message

We were getting some real sketchy output:

```
(node:212) UnhandledPromiseRejectionWarning: Error: EBADF: bad file descriptor, close
(Use `node --trace-warnings ...` to show where the warning was created)
(node:212) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:212) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error: Worker exited without posting a message
```
@72636c 72636c requested a review from a team as a code owner September 30, 2021 22:41
@changeset-bot
Copy link

changeset-bot bot commented Sep 30, 2021

🦋 Changeset detected

Latest commit: 63465ac

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
skuba Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@72636c 72636c merged commit b1ed5f7 into master Sep 30, 2021
@72636c 72636c deleted the worker-thread-errors branch September 30, 2021 22:46
@github-actions github-actions bot mentioned this pull request Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants