Skip to content

Conversation

@logaretm
Copy link
Collaborator

The flakey tests in nuxt-4 pointed out that we have a race condition where a middleware error can bubble up as an H3 event error, which wraps the original error we caught.

This means the checkOrSetAlreadyCaught won't actually detect it since it doesn't check the .cause property.

I added the logic needed for that for the Nuxt SDK but feels like this may come up later if it hadn't already.

Note that this does not affect the spans created, just the mechanism of the caught error, the spans would still be marked correctly as errored.

@linear
Copy link

linear bot commented Oct 24, 2025

@logaretm logaretm requested a review from s1gr1d October 24, 2025 12:22
@logaretm logaretm linked an issue Oct 24, 2025 that may be closed by this pull request
@logaretm logaretm force-pushed the awad/js-1092-nuxt-4-canary-test-failed branch from c6d6925 to 97f1621 Compare October 24, 2025 12:43
@logaretm logaretm merged commit fe97d67 into develop Oct 24, 2025
67 of 69 checks passed
@logaretm logaretm deleted the awad/js-1092-nuxt-4-canary-test-failed branch October 24, 2025 13:00
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.

nuxt-4 (canary) Test Failed

3 participants