-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: Improve error handling around calls to this.next
in middleware
#25702
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b58e6de
fix: Prevent request from being re-queued in event of total middlewar…
mike-plummer 329f03a
Improve error logging
mike-plummer 520c329
run ci
mike-plummer 13b8de2
Merge branch 'develop' into mikep/22825-next-middleware
mike-plummer bd38867
Add changelog entry
mike-plummer 459d6b4
Generate pre-release build
mike-plummer bb729e7
run ci
mike-plummer 1fa8ca5
Fix test, remove unnecessary cleanup action
mike-plummer f926027
Merge branch 'develop' into mikep/22825-next-middleware
mike-plummer 5632e1f
Fix changelog
mike-plummer cc15163
Address review comments
mike-plummer 075f4c8
Merge branch 'develop' into mikep/22825-next-middleware
mike-plummer ace3763
Address review comments
mike-plummer d2a9956
Merge branch 'develop' into mikep/22825-next-middleware
mike-plummer 187b130
Fix changelog
mike-plummer 2303f1e
Fix changelog
mike-plummer fbd5d51
Fix unit tests
mike-plummer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the type error this works around could be due to us using an outdated
@types/node
... but that may be more than a 1-line change to update.It doesn't look like
logError
will logcause
, so I'm not sure this is going to get logged by line 218:cypress/packages/errors/src/errorUtils.ts
Lines 55 to 71 in 07052d8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
logError
to recurse downcause
(if present) and log to a fixed depth in case there's a loop - rare, but I've been bitten by that in the pastTook a look at updating the
@types/node
bindings - it would end up touching a 3-4 other packages and myyarn
was having serious indigestion trying to bump the version so I may leave as-is with the type workaround just to keep this PR targeted