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: handle rare cases with unhandled rejections due to circular refs #763

Merged
merged 1 commit into from
May 2, 2023

Conversation

DudaGod
Copy link
Member

@DudaGod DudaGod commented May 2, 2023

No description provided.

@@ -25,7 +25,17 @@ function sendError(err, cb) {
try {
cb(err);
} catch {
const errWithoutCircularRefs = deserializeError(serializeError(err));
Copy link
Member Author

Choose a reason for hiding this comment

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

В редких случаях при запуске в CI этот подход не работает. При этом локально его воспроизвести не получается. Было принято решение использовать только необходимые поля из ошибки если не смогли выполнить JSON.stringify при передаче ошибки из одного процесса в другой.

Copy link
Member

@KuznetsovRoman KuznetsovRoman left a comment

Choose a reason for hiding this comment

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

/ok

@DudaGod DudaGod merged commit a4e99d3 into master May 2, 2023
@DudaGod DudaGod deleted the HERMIONE-818.unhandled_rejections branch May 2, 2023 11:09
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.

3 participants