Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: xsrf request 403 error for Link Research #15488

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

john-theo
Copy link

@john-theo john-theo commented May 6, 2024

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 / 说明

Link Research now will ban (403) requests with the UA header only, adding `accept` keep it working.
@github-actions github-actions bot added the Route label May 6, 2024
@john-theo john-theo changed the title Fix xsrf request 403 error for Link Research fix: xsrf request 403 error for Link Research May 6, 2024
@github-actions github-actions bot added the Auto: Route Test Skipped PR involves no routes label May 6, 2024
Copy link
Collaborator

@TonyRL TonyRL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@john-theo
Copy link
Author

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

Copy link
Contributor

github-actions bot commented May 7, 2024

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 github-actions bot added the Auto: Route Test Complete Auto route test has finished on given PR label May 7, 2024
@TonyRL TonyRL removed the Auto: Route Test Skipped PR involves no routes label May 7, 2024
Copy link
Collaborator

@TonyRL TonyRL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Route is still broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto: Route Test Complete Auto route test has finished on given PR Route
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants