Skip to content

fix: Fixed error reporting from async Fastify handlers #3100

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jsumners-nr
Copy link
Contributor

This PR resolves #3099.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the original errors.test.js file. I moved it to this file because it seems to be testing errors from the Express compatibility modules (though, I'm not completely convinced of that).

await promise
})

test('asynchronous handler errors', async (t) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test fails without the promise: true lines added in the instrumentation.

@github-project-automation github-project-automation bot moved this from Needs PR Review to Done: Issues recently completed in Node.js Engineering Board May 15, 2025
@jsumners-nr jsumners-nr reopened this May 15, 2025
@jsumners-nr
Copy link
Contributor Author

For those following along: the "fix" in this PR is updating the instrumentation to indicate that the request handlers are possibly promises. But that fix has caused unexpected, difficult, changes that we are working to resolve.

@kmudduluru kmudduluru moved this from Done: Issues recently completed to Triage Needed: Unprioritized Features in Node.js Engineering Board May 19, 2025
@Gaurav-Kataria-453
Copy link

Thanks for the update. I’m currently running into this issue as well—do you have an estimated timeline for when a fix might be in place? @jsumners-nr

@jsumners-nr
Copy link
Contributor Author

We had to backlog this for a bit to work on a higher priority item. We'll be picking this one back up shortly. No current ETA, but hopefully soon.

@kmudduluru kmudduluru moved this from Triage Needed: Unprioritized Features to Reviewed in Node.js Engineering Board May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Reviewed
Development

Successfully merging this pull request may close these issues.

Fastify async handler errors not reported correctly
2 participants