Open a37836323 opened 1 year ago
mee too
Same here, when ever i try to create a new conversation it shows this error
Traceback (most recent call last):
File "p:\Python\J.A.R.V.I.S\Jarvis Using Python\Brain\Qna.py", line 63, in <module>
name = Qna()
^^^^^
File "p:\Python\J.A.R.V.I.S\Jarvis Using Python\Brain\Qna.py", line 60, in Qna
app = asyncio.run(Starting_prompt(data))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vandu\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Users\vandu\AppData\Local\Programs\Python\Python311\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vandu\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "p:\Python\J.A.R.V.I.S\Jarvis Using Python\Brain\Qna.py", line 40, in Starting_prompt
response = await bot1.ask(prompt=prompt, conversation_style=ConversationStyle.creative, simplify_response=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vandu\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\EdgeGPT.py", line 116, in ask
async for final, response in self.chat_hub.ask_stream(
File "C:\Users\vandu\AppData\Local\Programs\Python\Python311\Lib\site-packages\EdgeGPT\chathub.py", line 197, in ask_stream
raise Exception(
Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue.
I solve this problem by using a proxy
I solve this problem by using a proxy
@Eikosa , hello! Which country did you use as a proxy server location?
I solve this problem by using a proxy
@Eikosa , hello! Which country did you use as a proxy server location?
I try with the https://pypi.org/project/free-proxy/ module until I find a suitable https proxy, one of them always works
Is it possible to create a captcha solver, so that we don't have to use a proxy, by the way there is another way to solve this issue. Before running your script you can just go to bing.com/chat and then it will automatically solve the captcha, then you can run your script, and it will work as good as new
What does the captcha look like? Is it arkose/funcaptcha? I haven't triggered it yet so can't fix. If it is indeed arkose/funcaptcha, I got it reversed at https://github.com/acheong08/funcaptcha
User needs to solve CAPTCHA to continue.
I'm sorry to say that using a proxy doesn't seem to solve this problem anymore
Many verification codes have been encountered,A headache problem
Has there been any progress on this issue
also met this problem
me too
Me three
Me four
Me five
Interesting。。。
Interesting。。。
I want to ask how do you use it? I always got a problem: raise TooManyRedirects( httpx.TooManyRedirects: Exceeded maximum allowed redirects.
Interesting。。。
I want to ask how do you use it? I always got a problem: raise TooManyRedirects( httpx.TooManyRedirects: Exceeded maximum allowed redirects.
You can use a us proxy or directly deploy on a us machine
Interesting。。。
I want to ask how do you use it? I always got a problem: raise TooManyRedirects( httpx.TooManyRedirects: Exceeded maximum allowed redirects.
您可以使用美国代理或直接部署在美国计算机上
You mean I need to get a valid US proxy IP and add it in "--proxy" parameter? I have to build a proxy pool?
The free-proxy library give proxies but they doesn't worked for me:
from EdgeGPT.EdgeGPT import Chatbot
from fp.fp import FreeProxy
import json, asyncio
async def main():
proxy = FreeProxy().get()
cookies = json.load(open("cookies.json"))
bot = Chatbot.create(cookies=cookies, proxy=proxy)
response = await bot.ask(prompt="hello")
print(response)
if __name__ == "__main__":
asyncio.run(main())
I get SSL Verification failed or Captcha error
The free-proxy library give proxies but they doesn't worked for me:
from EdgeGPT.EdgeGPT import Chatbot from fp.fp import FreeProxy import json, asyncio async def main(): proxy = FreeProxy().get() cookies = json.load(open("cookies.json")) bot = await Chatbot.create(cookies=cookies, proxy=proxy) response = bot.ask(prompt="hello") print(response) if __name__ == "__main__": asyncio.run(main())
I get SSL Verification failed or Captcha error
use freeproxy with https, it is unlikely, but sometimes it works
The free-proxy library give proxies but they doesn't worked for me:
from EdgeGPT.EdgeGPT import Chatbot from fp.fp import FreeProxy import json, asyncio async def main(): proxy = FreeProxy().get() cookies = json.load(open("cookies.json")) bot = await Chatbot.create(cookies=cookies, proxy=proxy) response = bot.ask(prompt="hello") print(response) if __name__ == "__main__": asyncio.run(main())
I get SSL Verification failed or Captcha error
When I use free proxies, I often get SSL Verification failed, too. And sometimes I also get "all connections failed." and "connectError"
I tried many free proxies, but all didn't work.
I'm using gpt_academic and I met the same problem. My solution is modified the user-agent and other information showed in this file. You can try the instruction below:
I have the same problem.The only temporary fix I can come up with at the moment is to log in and visit new bing via the edge browser, and click the CAPTCHA. This can let my edgeGPT work for one day.
same i have to do this process before running the script and it lets me use it for 1 day, just open edge browser and then solve the captcha it manualy, and then it lets me do the job done
same i have to do this process before running the script and it lets me use it for 1 day, just open edge browser and then solve the captcha it manualy, and then it lets me do the job done
But when I open the browser no captcha appears
I have the same problem.The only temporary fix I can come up with at the moment is to log in and visit new bing via the edge browser, and click the CAPTCHA. This can let my edgeGPT work for one day.
But when I open the browser no captcha appears
I have the same problem.The only temporary fix I can come up with at the moment is to log in and visit new bing via the edge browser, and click the CAPTCHA. This can let my edgeGPT work for one day.
But when I open the browser no captcha appears
You need to ask a question, then you can see the captcha.
but when I enter from the web it does not ask me for any captcha, I can chat normally
Then you are good to go, you can run your script
Might be this error is related with VPNs, you used a VPN?
If you are running a Linux Desktop Environment I solved it now this way. Install Microsoft Edge and xdotool. Start Edge, log into your M$ Account and select saving the credentials for future browser starts. If done you can now execute this snippet here automatic via cron once or twice a day.
/usr/bin/microsoft-edge-stable %U "https://www.bing.com/search?q=Hi+Bot&showconv=1&FORM=hpcodx&sydconv=1&scdexwlcs=1&scdexwlispw=1&sendquery=1" && sleep 10 && xdotool key ctrl+w"
It starts the Edge Browser, sends "Hi Bot" to the Bot and the Verification capture is done and the Browser quits automatic. Et voila you can now use edgegpt again for the next 24h. :)
Thanks for the help, but we windows users have to do that stuff manualy or in WSL, i think automating it with selenium might be a good idea, I mean we can use selenium to automate edge browser. Just log in to it, send a hi to bing and done. I am starting to work on it, after i complete i will provide the code snippet here
Thanks for the help, but we windows users have to do that stuff manualy or in WSL, i think automating it with selenium might be a good idea, I mean we can use selenium to automate edge browser. Just log in to it, send a hi to bing and done. I am starting to work on it, after i complete i will provide the code snippet here
I was trying to program it in selenium but I couldn't do the code with bing hahaha
I fix it by request to https://www.bing.com/turing/conversation/create and get conversationSignature import requests and add newlines
I fix it by request to https://www.bing.com/turing/conversation/create and get conversationSignature import requests and add newlines
Then please make the PR
I checked Conversation
and it already makes that request and set struct
to the whole json but uses a different url: https://edgeservices.bing.com/edgesvc/turing/conversation/create
I fix it by request to https://www.bing.com/turing/conversation/create and get conversationSignature import requests and add newlines
Doesn´t work here.
Today, I got 503, I back to previous code (remove https://www.bing.com/turing/conversation/create) and it runs smooth
Now it requires CAPTCHA :(
I am not sure but after change lines 20, 21 in constant.py to "sec-ch-ua-full-version": '"116.0.1938.27"', "sec-ch-ua-full-version-list": '"Chromium";v="116.0.5845.42", "Not)A;Brand";v="24.0.0.0", "Microsoft Edge";v="116.0.1938.27"',
and it runs smooth.
Fix it with
def getCookies(url):
import browser_cookie3
browsers = [
# browser_cookie3.chrome,
# browser_cookie3.chromium,
# browser_cookie3.opera,
# browser_cookie3.opera_gx,
# browser_cookie3.brave,
browser_cookie3.edge,
# browser_cookie3.vivaldi,
# browser_cookie3.firefox,
# browser_cookie3.librewolf,
# browser_cookie3.safari,
]
for browser_fn in browsers:
# if browser isn't installed browser_cookie3 raises exception
# hence we need to ignore it and try to find the right one
try:
cookies = []
cj = browser_fn(domain_name=url)
for cookie in cj:
cookies.append(cookie.__dict__)
return cookies
except:
continue
and
bot = EdgeGPT.Chatbot(cookies=getCookies('.bing.com'))
thanks
is acheong still fixing this issue or he isn't
Thanks for the help, but we windows users have to do that stuff manualy or in WSL, i think automating it with selenium might be a good idea, I mean we can use selenium to automate edge browser. Just log in to it, send a hi to bing and done. I am starting to work on it, after i complete i will provide the code snippet here
Any updates ?
Is there an existing issue for this?
- [ ] I have searched the existing issues and checked the recent builds/commits
What happened?
After using it 30 times, it prompts this, what should I do?
Steps to reproduce the problem
- After using it 30 times, it prompts this, what should I do?
What should have happened?
After using it 30 times, it prompts this, what should I do?
Version where the problem happens
3.9
What Python version are you running this with?
3.9
What is your operating system ?
Linux
Command Line Arguments
no
Console logs
Traceback (most recent call last): File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app response = self.full_dispatch_request() File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request rv = self.handle_user_exception(e) File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/www/wwwroot/ceshi701/EdgeGPT/bbb.py", line 31, in chat responses = loop.run_until_complete(get_responses()) File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/www/wwwroot/ceshi701/EdgeGPT/bbb.py", line 18, in get_responses async for final, response in bot.ask_stream(prompt=question, conversation_style=ConversationStyle.creative): File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/EdgeGPT/EdgeGPT.py", line 185, in ask_stream async for response in self.chat_hub.ask_stream( File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/EdgeGPT/chathub.py", line 197, in ask_stream raise Exception( Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue. [2023-07-02 01:31:19,185] ERROR in app: Exception on /chat [POST] Traceback (most recent call last): File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 2190, in wsgi_app response = self.full_dispatch_request() File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 1486, in full_dispatch_request rv = self.handle_user_exception(e) File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/flask/app.py", line 1469, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/www/wwwroot/ceshi701/EdgeGPT/bbb.py", line 31, in chat responses = loop.run_until_complete(get_responses()) File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/www/wwwroot/ceshi701/EdgeGPT/bbb.py", line 18, in get_responses async for final, response in bot.ask_stream(prompt=question, conversation_style=ConversationStyle.creative): File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/EdgeGPT/EdgeGPT.py", line 185, in ask_stream async for response in self.chat_hub.ask_stream( File "/www/wwwroot/ceshi701/EdgeGPT/7815696ecbf1c96e6894b779456d330e_venv/lib/python3.9/site-packages/EdgeGPT/chathub.py", line 197, in ask_stream raise Exception( Exception: CaptchaChallenge: User needs to solve CAPTCHA to continue.
Additional information
ok
having the same problem
Thanks for the help, but we windows users have to do that stuff manualy or in WSL, i think automating it with selenium might be a good idea, I mean we can use selenium to automate edge browser. Just log in to it, send a hi to bing and done. I am starting to work on it, after i complete i will provide the code snippet here
Any updates ?
Trying it. still figuring out that how does their captcha work. If any one knows that what kind of captcha it is, can you please tell it to me so that it would be easier to solve this problem
Guys, I found out that bing shows this captcha when it asks user to solve it. Any clues on how to solve it using python, Anyone??
Is there an existing issue for this?
What happened?
After using it 30 times, it prompts this, what should I do?
Steps to reproduce the problem
What should have happened?
After using it 30 times, it prompts this, what should I do?
Version where the problem happens
3.9
What Python version are you running this with?
3.9
What is your operating system ?
Linux
Command Line Arguments
Console logs
Additional information
ok