fix: connect playwright ws endpoint via protocol#21917
Merged
Merged
Conversation
Contributor
|
Successfully generated as following: http://localhost:1200/bilibili/user/video/646730844 - Failed ❌ |
Contributor
|
test |
Contributor
| \n## Auto Review\n- [Rule 21] lib/utils/playwright.ts, lib/utils/playwright.worker.ts: Removed User-Agent configuration for Playwright browsers instead of using RSSHub's built-in `config.trueUA` for requests requiring realistic browser headers. Restore UA settings with `config.trueUA` (e.g., add `--user-agent=${config.trueUA}` to launch args and `userAgent: config.trueUA` to browser context options). |
FrancoBenedetti
pushed a commit
to FrancoBenedetti/RSSHub
that referenced
this pull request
May 21, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Involved Issue / 该 PR 相关 Issue
Close #
Example for the Proposed Route(s) / 路由地址示例
New RSS Route Checklist / 新 RSS 路由检查表
PuppeteerNote / 说明
PLAYWRIGHT_WS_ENDPOINTvia the Playwright protocol endpoint withchromium.connect()instead of CDP, and pass remote launch options throughlaunch-options./video, and wait for the JSONarc/searchresponse across that navigation flow.requestfinishedevents.Test plan:
pnpm vitest run lib/bilibili-video-route.test.ts lib/utils/playwright.mock.test.tspnpm exec oxlint --type-aware lib/utils/playwright.ts lib/utils/playwright.worker.ts lib/utils/playwright.mock.test.ts lib/routes/bilibili/video.ts lib/routes/bilibili/cache.ts lib/bilibili-video-route.test.tspnpm exec oxfmt lib/utils/playwright.ts lib/utils/playwright.worker.ts lib/utils/playwright.mock.test.ts lib/routes/bilibili/video.ts lib/routes/bilibili/cache.ts lib/bilibili-video-route.test.ts --checkpnpm build:routes/bilibili/user/video/646730844?format=jsonwithPLAYWRIGHT_WS_ENDPOINT=wss://cloudflare-patchright.rss3.workers.dev/playwright; repeated checks were blocked by the remote browser endpoint returning 500 or Bilibili returning 412 / risk-control responses.