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(node): handle offshoot promise rejections #10454

Merged
merged 4 commits into from
Mar 18, 2024

Conversation

lilnasy
Copy link
Contributor

@lilnasy lilnasy commented Mar 15, 2024

Changes

Testing

  • Added

Docs

  • Does not affect usage.

Copy link

changeset-bot bot commented Mar 15, 2024

🦋 Changeset detected

Latest commit: 328cf34

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

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

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Mar 15, 2024
@lilnasy lilnasy changed the title Node handle rejections fix(node): handle offshoot promise rejections Mar 15, 2024
Copy link
Member

@bluwy bluwy left a comment

Choose a reason for hiding this comment

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

Still have a little concern of handling unhandledRejection for users by default, but I think it's worth trying it out.

@lilnasy
Copy link
Contributor Author

lilnasy commented Mar 18, 2024

Still have a little concern of handling unhandledRejection for users by default, but I think it's worth trying it out.

That's fair. I think it makes sense for the adapter to do it because there is no natural place for the developer to add the listener - api route top-level, middleware top-level?

@lilnasy lilnasy merged commit 83f9105 into withastro:main Mar 18, 2024
13 checks passed
@lilnasy lilnasy deleted the node-handle-rejections branch March 18, 2024 14:14
@astrobot-houston astrobot-houston mentioned this pull request Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: integration Related to any renderer integration (scope)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server crashes due to multiple runtime errors in Astro component (Astro + React)
3 participants