Skip to content

Fix "Chaining cycle detected for promise" error in Auth plugin#5374

Merged
DavertMik merged 1 commit into4.xfrom
bugfix/5207-plugin_throw_rejection_-at_promise
Jan 15, 2026
Merged

Fix "Chaining cycle detected for promise" error in Auth plugin#5374
DavertMik merged 1 commit into4.xfrom
bugfix/5207-plugin_throw_rejection_-at_promise

Conversation

@DenysKuchma
Copy link
Collaborator

@DenysKuchma DenysKuchma commented Jan 9, 2026

When using Data() with multiple values and session() inside tests, Auth plugin's retry logic created an infinite promise loop.

Fix

Replaced recorder.throw(err) with throw err in auth.js:353 to break the chaining cycle.

#5207

@DenysKuchma DenysKuchma requested a review from DavertMik January 9, 2026 15:13
@DavertMik DavertMik merged commit fe9ff24 into 4.x Jan 15, 2026
10 checks passed
@kobenguyent kobenguyent deleted the bugfix/5207-plugin_throw_rejection_-at_promise branch January 15, 2026 09:40
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.

2 participants