Closed Misaka13514 closed 3 years ago
Unfortunately I can't reproduce this bug. Does this occurs constantly or occasionally? Do other Pixiv links work? Please provide your Python version on Heroku and Heroku stack version. You can also try to upgrade Python, dependencies and Heroku stack.
At some time all pixiv links will not work. (But it sometimes works fine.)
Now it seems to be working fine, if there are no problems in the next few days, I will close the issue.
*I tried almost the same operation before, and it worked normally after the deployment was completed, but it didn’t work after a while, so I came here.
Version info: Python
> cat runtime.txt
python-3.9.5
requirements generated by pipreqs . --force
> cat requirements.txt
PixivPy==3.5.11
pymongo==3.11.4
tenacity==5.1.5
PyDrive2==1.8.3
firebase_admin==5.0.0
aiohttp==3.7.4.post0
oauth2client==4.1.3
requests==2.25.1
Pybooru==4.2.2
aiogram==2.13
environs==9.3.2
motor==2.4.0
aiofiles==0.7.0
aiojobs==0.3.0
beautifulsoup4==4.9.3
dataclasses==0.8
tinydb==4.4.0
Remote reported an error, so I manually changed dataclasses==0.8
to dataclasses==0.6
.
remote: ERROR: Could not find a version that satisfies the requirement dataclasses==0.8 (from -r /tmp/build_23094bcc/requirements.txt (line 16)) (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6)
heroku stack: "heroku-20"
Everything seems fine, thank you @y-young !
@Misaka13514
Hello, I am experiencing the same problem as you. May I ask how you finally solved this problem?
2021-06-17 09:33:18,720 - bot - ERROR - Update caused error "requests POST https://oauth.secure.pixiv.net/auth/token error: Cloudflare Captcha detected, unfortunately you haven't loaded an anti Captcha provider correctly via the 'captcha' parameter."
In fact, I didn't solve it, but it solved itself: after a while, the error no longer appeared. I feel very strange about this. @KaidLi
My friend @Cn47mP also encountered this problem before. After she redeployed the robot , the problem seemed to be solved.
If the problem is still not solved after you try to upgrade the software and dependencies, provide your version information. I can reopen the issue for you, or maybe you can open a new one. @KaidLi
@Misaka13514 Thank you for your help! It worked fine after reinstalling.
Describe the bug
Pixiv request encountered Cloudflare Captcha on my instance deployed on Heroku.
The error given is
error: Cloudflare Captcha detected, unfortunately you haven't loaded an anti Captcha provider correctly via the 'captcha' parameter
.I did not see the relevant description after checking the documention. Should I directly report it to the upstream dependencies?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
works as before
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!
heroku logs
Environment (please complete the following information):
deploy to heroku with default config
Additional context
I encountered this error in the last two days.