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(server-core): Headers sent multiple times from dev-server handlers crashes it #8463

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

mcheshkov
Copy link
Member

Check List

  • Tests has been run in packages where changes made if available
  • Linter has been run for changed code
  • Tests for the changes have been added if not covered yet
  • Docs have been added / updated if required

Issue Reference this PR resolves

Description of Changes Made (if issue reference is not provided)

Due to forgotten return, one of request handlers tries to send response twice, leading to rejection, which gets caught, but error handler tries to send response one more time, throwing another exception, and crashing process with unhandled rejection.

@mcheshkov mcheshkov requested a review from a team as a code owner July 15, 2024 14:20
@github-actions github-actions bot added the pr:community Contribution from Cube.js community members. label Jul 15, 2024
@paveltiunov paveltiunov changed the title fix(@cubejs-backend/server-core): Headers sent miltiple times from dev-server handlers crashes it fix(server-core): Headers sent multiple times from dev-server handlers crashes it Jul 16, 2024
@mcheshkov mcheshkov merged commit 45bbb8a into master Jul 17, 2024
51 checks passed
@mcheshkov mcheshkov deleted the CORE-1054-headers-die-twice branch July 17, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:community Contribution from Cube.js community members.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants