RSSHub icon indicating copy to clipboard operation
RSSHub copied to clipboard

fix: xsrf request 403 error for Link Research

Open john-theo opened this issue 1 year ago • 2 comments

Link Research now will ban (403) requests with the UA header only, adding accept keep it working.

Involved Issue / 该 PR 相关 Issue

Example for the Proposed Route(s) / 路由地址示例

/linkresearcher/category=theses

New RSS Route Checklist / 新 RSS 路由检查表

  • [ ] New Route / 新的路由
  • [ ] Anti-bot or rate limit / 反爬/频率限制
    • [ ] If yes, do your code reflect this sign? / 如果有, 是否有对应的措施?
  • [ ] Date and time / 日期和时间
    • [ ] Parsed / 可以解析
    • [ ] Correct time zone / 时区正确
  • [ ] New package added / 添加了新的包
  • [ ] Puppeteer

Note / 说明

john-theo avatar May 06 '24 13:05 john-theo

How can we know the issue is fixed when route test is being skipped?

Stupid oversight =_=. Updated the PR description, but didn't trigger the removal of the Route Test Skipped label. Should I open a new PR? @TonyRL

john-theo avatar May 07 '24 04:05 john-theo

Successfully generated as following:

http://localhost:1200/linkresearcher/category=theses - Failed ❌
HTTPError: Response code 503 (Service Unavailable)

Error Message:<br/><code class="mt-2 block max-h-28 overflow-auto bg-zinc-100 align-bottom w-fit details">TypeError: Headers constructor: Argument 1 could not be converted to one of: sequence&lt;sequence&lt;ByteString&gt;&gt;, record&lt;ByteString, ByteString&gt;.</code>
Route: <code class="ml-2 bg-zinc-100">/linkresearcher/:params</code>
Full Route: <code class="ml-2 bg-zinc-100">/linkresearcher/category=theses</code>
Node Version: <code class="ml-2 bg-zinc-100">v21.7.3</code>
Git Hash: <code class="ml-2 bg-zinc-100">e57730a9</code>

github-actions[bot] avatar May 07 '24 04:05 github-actions[bot]

This PR is stale because it has been opened for more than 3 weeks with no activity. Comment or this will be closed in 7 days.

github-actions[bot] avatar May 30 '24 23:05 github-actions[bot]

This PR was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Jun 07 '24 23:06 github-actions[bot]