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

登录页面之后关掉代理仍然无法成功返回数据的问题 #3

Open
Victoriaheiheihei opened this issue Dec 19, 2022 · 0 comments

Comments

@Victoriaheiheihei
Copy link

你好,
感谢你的工作
我尝试使用你的方法访问chatgpt,在登录之后弹出对话界面的一瞬间关掉代理,但是他当前页面仍然会关掉,并且会重新再次打开验证和登录页面,然后程序就会报错。不知道是我关闭代理的时机不正确,还是怎么回事呢?
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main)
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 390, in get_cf_cookies raise Exception("cf challenge fail")
Exception: cf challenge fail
PS E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main> python .\app.py
Traceback (most recent call last):
File "E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main\app.py", line 1, in
from bbot import run
File "E:\Project\spider.vscode\web_spider\EASYChatGPT-main\EASYChatGPT-main\bbot.py", line 10, in
chatbot = Chatbot({})
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 116, in init
self.refresh_session()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 323, in refresh_session
asyncio.run(self.get_cf_cookies())
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\HZY\AppData\Local\Programs\Python\Python39\lib\site-packages\revChatGPT\revChatGPT.py", line 390, in get_cf_cookies
raise Exception("cf challenge fail")
Exception: cf challenge fail

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

No branches or pull requests

1 participant