[Bug]: httpx.TooManyRedirects: Exceeded maximum allowed redirects
Is there an existing issue for this?
- I have searched the existing issues and checked the recent builds/commits
What happened?
I am at Mainland China. But I am sure my VPN can successfully visit the Bing Chat website and use its function.
I installed the package using Anaconda Prompt successfully, I installed the Browser Extension and export the cookie information successfully. I pasted the json cookie into a newly-created file and named it "bing_cookies_20230709.json". I enter "python -m EdgeGPT.EdgeGPT --cookie-file bing_cookies_20230709.json" in the Anaconda Prompt.
Then comes to the error message: httpx.TooManyRedirects: Exceeded maximum allowed redirects
Steps to reproduce the problem
As described in the "What happened" part
What should have happened?
It should run successfully as instructed.
Version where the problem happens
Name: revChatGPT Version: 6.4.1 Summary: ChatGPT is a reverse engineering of OpenAI's ChatGPT API Home-page: https://github.com/acheong08/ChatGPT Author: Antonio Cheong Author-email: [email protected] License: GNU General Public License v2.0 Location: c:\\users\86188\anaconda3\lib\site-packages Requires: async-tio, curl-cffi, httpx, openai, OpenAIAuth, prompt-toolkit, requests, rich, tiktoken Required-by:
What Python version are you running this with?
Python 3.10.9
What is your operating system ?
Windows
Command Line Arguments
python -m EdgeGPT.EdgeGPT --cookie-file bing_cookies_20230709.jsonConsole logs
EdgeGPT - A demo of reverse engineering the Bing GPT chatbot
Repo: github.com/acheong08/EdgeGPT
By: Antonio Cheong
!help for help
Type !exit to exit
Initializing...
Enter `alt+enter` or `escape+enter` to send a message
Traceback (most recent call last):
File "C:\Users\86188\anaconda3\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\86188\anaconda3\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\86188\anaconda3\lib\site-packages\EdgeGPT\EdgeGPT.py", line 235, in <module>
main()
File "C:\Users\86188\anaconda3\lib\site-packages\EdgeGPT\main.py", line 244, in main
asyncio.run(async_main(args))
File "C:\Users\86188\anaconda3\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\Users\86188\anaconda3\lib\asyncio\base_events.py", line 649, in run_until_complete
return future.result()
File "C:\Users\86188\anaconda3\lib\site-packages\EdgeGPT\main.py", line 79, in async_main
bot = await Chatbot.create(proxy=args.proxy, cookies=cookies)
File "C:\Users\86188\anaconda3\lib\site-packages\EdgeGPT\EdgeGPT.py", line 42, in create
await Conversation.create(self.proxy, cookies=cookies),
File "C:\Users\86188\anaconda3\lib\site-packages\EdgeGPT\conversation.py", line 103, in create
response = await client.get(
File "C:\Users\86188\anaconda3\lib\site-packages\httpx\_client.py", line 1757, in get
return await self.request(
File "C:\Users\86188\anaconda3\lib\site-packages\httpx\_client.py", line 1530, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "C:\Users\86188\anaconda3\lib\site-packages\httpx\_client.py", line 1617, in send
response = await self._send_handling_auth(
File "C:\Users\86188\anaconda3\lib\site-packages\httpx\_client.py", line 1645, in _send_handling_auth
response = await self._send_handling_redirects(
File "C:\Users\86188\anaconda3\lib\site-packages\httpx\_client.py", line 1675, in _send_handling_redirects
raise TooManyRedirects(
httpx.TooManyRedirects: Exceeded maximum allowed redirects.Additional information
No response
Source: acheong08/EdgeGPT