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

Send a message when a request is blocked #43

Closed
Misaka13514 opened this issue Mar 18, 2022 · 1 comment
Closed

Send a message when a request is blocked #43

Misaka13514 opened this issue Mar 18, 2022 · 1 comment
Labels
upstream Something not on our side

Comments

@Misaka13514
Copy link
Contributor

Misaka13514 commented Mar 18, 2022

Describe the bug
A clear and concise description of what the bug is.

When I use nazurin, I send a pixiv link to the bot but I don't get a reply, it's the same after many attempts.
After I checked the log, I finally realized that these requests were blocked by pixiv.

To Reproduce
Steps to reproduce the behavior:

  1. Send a pixiv link (in my case https://www.pixiv.net/artworks/96974628)
  2. Wait and got nothing

Expected behavior
A clear and concise description of what you expected to happen.

Output something to the user. Currently, the bot will not send the raw message because it is too long.

Error output / Logs
Logs are usually critical to identify the cause of a bug, please paste the complete log from start to end.
Make sure to remove or mask all secrets, such as bot token and personal information!

It's really long 🤣 See the log here

Environment (please complete the following information):

  • OS: [e.g. Ubuntu]
  • Python Version [e.g. 3.8]

latest version deployed on heroku

Additional context
Add any other context about the problem here.

It worked fine before.
I have two nazurin deployed on heroku, they use the same pixiv account, one request is blocked while the other works fine at the same time. So maybe this will be a little hard to reproduce the problem (might need MITM 🤔)
Maybe this can be achieved by the http status code of the response?

@y-young
Copy link
Owner

y-young commented Mar 18, 2022

It seems you have hit the captcha verification, as mentioned in upbit/pixivpy#155. Unfortunately there's no solution at this moment, maybe you can retry or wait for a while to see if it will disappear.

@y-young y-young added the upstream Something not on our side label Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Something not on our side
Projects
None yet
Development

No branches or pull requests

2 participants