fix(連接器): 以 Fetch 攔截補上第一銀行 010103 擷取 - #114
Closed
TedLin1993 wants to merge 1 commit into
Closed
Conversation
正式環境在送出 0101 後等滿 10 秒仍沒有 CDP Document 或 live frame。改在 Fetch response 階段攔截 010103、放寬資源類型與 URL 比對,並掃描所有 live frame。 Co-authored-by: Ted <TedLin1993@users.noreply.github.com>
TedLin1993
marked this pull request as ready for review
August 29, 2026 06:15
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
taiwan-fin-hub | 8e77458 | Aug 29 2026, 06:16 AM |
Owner
Author
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 #113 已部署到 production。手動同步仍回「交易明細讀取失敗」(HTTP 502)。Worker log 顯示新程式有跑到:
[firstbank] 0101-query-submit path=/NetBank/2/0101.html[firstbank] 010103-timeout path=/NetBank/2/010103.html這 10 秒內沒有
010103-cdp-response、010103-http-response或010103-live-frame。因此失敗原因不是「CDP 晚 2 秒才到」,而是 production Browser Rendering 根本沒有送出符合type=Document且 path 精確等於/NetBank/2/010103.html的事件,live iframe 也沒出現。修正
Fetch.enable(requestStage: Response)攔截010103,用Fetch.getResponseBody讀 body,並務必Fetch.continueRequest。Network.responseReceived不再只接受Document;Other/XHR/Fetch/ 缺 type 也可擷取。jsessionid與.htm。resourceType、0101-cdp-request/0101-cdp-response,逾時時記錄仍存活 frame 的 path。仍不記錄帳號、金額、cookie 或 HTML body。測試
resourceType=Other、jsessionid frame、僅有Fetch.requestPaused的路徑。npm run format:checknpm run typecheck請等此 PR 部署後再同步。本次未重試 production 第一銀行同步。