Send a message when a request is blocked
Misaka13514 opened this issue · 1 comments
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:
- Send a pixiv link (in my case
https://www.pixiv.net/artworks/96974628
) - 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?
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.