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

Pixiv Request Daily Ranking Error but still has content returned #18123

Closed
1 task done
Sentixxx opened this issue Jan 14, 2025 · 11 comments
Closed
1 task done

Pixiv Request Daily Ranking Error but still has content returned #18123

Sentixxx opened this issue Jan 14, 2025 · 11 comments

Comments

@Sentixxx
Copy link

Sentixxx commented Jan 14, 2025

Routes

/pixiv/ranking/:mode/:date?

Full routes

/pixiv/ranking/day

Related documentation

https://docs.rsshub.app/routes/social-media

What is expected?

No Error and can be modified with date/mode

What is actually happening?

error: Error in /pixiv/ranking/day/rss: FetchError: FetchError: [GET] "https://app-api.pixiv.net/v1/illust/ranking?date=NaN-NaN-NaN&filter=for_ios&mode=day": 400 Bad Request

Deployment information

Self-hosted

Deployment information (for self-hosted)

MacOS Darwin Kernel Version arm64

Additional info

NaN Date in request url.
If you change the date to an exact value, then it returned with no content.
RefreshToken has been set.

This is not a duplicated issue

  • I have searched existing issues to ensure this bug has not already been reported
@Sentixxx Sentixxx added the RSS bug Something isn't working label Jan 14, 2025
Copy link
Contributor

Searching for maintainers:
  • /pixiv/ranking/:mode: Route not found

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@github-actions github-actions bot reopened this Jan 14, 2025
Copy link
Contributor

Searching for maintainers:
  • /pixiv/ranking/:mode/:date?: @EYHN

To maintainers: if you are not willing to be disturbed, list your username in scripts/workflow/test-issue/call-maintainer.js. In this way, your username will be wrapped in an inline code block when tagged so you will not be notified.

If all routes can not be found, the issue will be closed automatically. Please use NOROUTE for a route-irrelevant issue or leave a comment if it is a mistake.
如果所有路由都无法匹配,issue 将会被自动关闭。如果 issue 和路由无关,请使用 NOROUTE 关键词,或者留下评论。我们会重新审核。

@cscnk52
Copy link
Contributor

cscnk52 commented Jan 21, 2025

refer to docs, use pixiv route is require PIXIV_REFRESHTOKEN config, have you configured yet?

@Sentixxx
Copy link
Author

refer to docs, use pixiv route is require PIXIV_REFRESHTOKEN config, have you configured yet?

yes, I configured it in my path env

@cscnk52
Copy link
Contributor

cscnk52 commented Jan 21, 2025

or maybe the token has expired? I'm not a user of pixiv, but the 400 code means client error, expired token is normal reason for this kind of question.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400

@Sentixxx
Copy link
Author

or maybe the token has expired? I'm not a user of pixiv, but the 400 code means client error, expired token is normal reason for this kind of question. https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/400
I just got the refresh token in 30 min. Actually, if you remove the date/content query params in the url, the server retrurns with the expected content of 3 requests.

@cscnk52
Copy link
Contributor

cscnk52 commented Jan 21, 2025

could you offer me a token for test? I'm not a user of pixiv. just email to cscnk52 at outlook.com, not reply in issue.

@Sentixxx
Copy link
Author

Sentixxx commented Jan 21, 2025

could you offer me a token for test? I'm not a user of pixiv. just email to cscnk52 at outlook.com, not reply in issue.

I dont have any other REFRESHTOKEN expect my own account.
You can login with google account. It's easy. Refer to https://gist.github.com/ZipFile/c9ebedb224406f4f11845ab700124362. :)

@cscnk52
Copy link
Contributor

cscnk52 commented Jan 21, 2025

i can't reproduce, it runs as expect in my Windows computer, seem like about date parse, maybe environment related bug? help wanted.
@TonyRL help wanted

@cscnk52
Copy link
Contributor

cscnk52 commented Jan 21, 2025

could you keep this issue open for others can help to fix this issue?

@Sentixxx
Copy link
Author

Sentixxx commented Jan 23, 2025

n help to fix this issue?

I noticed that the Pixiv API doesn't seem to support ranking queries for 'content=query'. It's strange because some third-party apps are able to retrieve the illustration content ranking (maybe using a different method). So, this might not be a bug after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants