Repository navigation
fix(orderbook): retry a timed-out rebalance qualification once and localize request timeouts - #356
Merged
Merged
Conversation
…calize request timeouts One slow all-symbol position response failed the automatic rebalance qualification for good and showed the browser's raw abort text. The check now retries once after 3 seconds on the cancellable eligibility timer, ignores failures from an older window, and reports a request timeout as the localized "Binance 请求超时" in both the qualification and the transfer status. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
On a QUSDT tab the automatic USDT rebalance qualification showed
自动再平衡资格检查失败:signal is aborted without reason: its all-symbol position request hit the 5-second timeout once, the check never retried, and the browser's raw abort text was displayed. Other tabs had already rebalanced the account.Change
runUsdtRebalanceEligibilityCheckretries a timed-out qualification once after 3 s on the existing eligibility timer, so any account change cancels it; the retry shows the same waiting status as the first attempt.Binance 请求超时/Binance request timed outin the qualification failure and in the automatic transfer stop status (not retried there, since a transfer may be in flight), matching the manual path.Validation
npm test: 2693 passed.npx playwright test: 712 passed.npm run lint:tests,npm run check:binance-orderbook-trade,git diff --checkpass.🤖 Generated with Claude Code