fix(連接器): 修正第一銀行 010103 CDP 等待競態 - #113
Merged
Merged
Conversation
查詢送出前先掛上文件 body Promise,送出後等待約 10 秒以取得 live frame 或延遲到達的 CDP/HTTP HTML,並補上不含財務內容的階段 log。 Co-authored-by: Ted <TedLin1993@users.noreply.github.com>
TedLin1993
marked this pull request as ready for review
August 29, 2026 05:57
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
taiwan-fin-hub | 732aa82 | Aug 29 2026, 05:58 AM |
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.
問題
PR #112 合併後,本機 wrangler 可成功擷取 010103,但 production Browser Rendering 仍可能在 capture/verify 階段回 502。送出 0101 查詢後只等 2 秒找 live iframe;只有 CDP
requestIds已經在 Set 裡才再多等 1 秒。若 Cloudflare Browser Run 的responseReceived/loadingFinished在 2 秒後才到達,程式會丟出「交易明細讀取失敗」並拆除 CDP session/listeners。既有測試在 click 當下同步發出 CDP 事件,無法覆蓋延遲回應。修正
requestIdsSet 當下是否已有值。測試
responseReceived/loadingFinished延遲到達的測試(含requestIds仍為空時仍等待loadingFinished)。npm run format:check、npm run typecheck、First Bank session tests(15 passed)。本次未執行 production 或任何包含銀行登入資料的同步。請勿合併前再對第一銀行做 production 重試。