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

2024-05-10 18:24:44 ERROR src.bing_chat.response -> 400, message='Can not decode content-encoding: br' #152

Closed
CatfishGG opened this issue May 10, 2024 · 10 comments

Comments

@CatfishGG
Copy link

Hey there FuseFairy! I am having an error regarding copilot.

So, The error I encountered was:

2024-05-10 18:24:33 INFO     cogs.event -> udpskid:'Hey there' (udpskid chatroom) [Style: balanced]
2024-05-10 18:24:35 ERROR    src.bing_chat.response -> 400, message='Can not decode content-encoding: br'
Traceback (most recent call last):
  File "D:\Downloads\DiscordBot-EdgeGPT-main\DiscordBot-EdgeGPT-main\src\bing_chat\response.py", line 85, in send_message
    reply = await chatbot.ask(
            ^^^^^^^^^^^^^^^^^^
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\re_edge_gpt\chat\re_edge_gpt.py", line 120, in ask
    async for final, response in self.chat_hub.ask_stream(
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\re_edge_gpt\chat\chathub.py", line 117, in ask_stream
    response = await upload_image_url(
               ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\re_edge_gpt\image\upload_image.py", line 39, in upload_image_url
    return (await resp.json())["blobId"]
            ^^^^^^^^^^^^^^^^^
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\client_reqrep.py", line 1092, in json
    await self.read()
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\client_reqrep.py", line 1032, in read
    self._body = await self.content.read()
                 ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\streams.py", line 370, in read
    block = await self.readany()
            ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\streams.py", line 392, in readany
    await self._wait("readany")
  File "C:\Users\CatfishGG\AppData\Local\Programs\Python\Python311\Lib\site-packages\aiohttp\streams.py", line 306, in _wait
    await waiter
aiohttp.client_exceptions.ClientPayloadError: 400, message='Can not decode content-encoding: br'

It looks like this on discord.
image

What do you think about this?

@FuseFairy
Copy link
Owner

It's still working for me, maybe try vpn?

image

@CatfishGG
Copy link
Author

alright wait. Let me try a VPN

@FuseFairy
Copy link
Owner

FuseFairy commented May 10, 2024

If you can, you can also try running on Replit.
https://replit.com/@dd8611706/DiscordBot-EdgeGPT?v=1

@CatfishGG
Copy link
Author

I kind of knew this was going to happen because replit's datacenters are messed up. They use 1 bare metal server for hundreds or thousands of users and because of that the traffic of the server is considered to be fraudlent.

So the new error that we have from replit is:

2024-05-10 13:25:15 INFO     cogs.event -> udpskid:'Hey there' (udpskid chatroom) [Style: balanced]
2024-05-10 13:25:18 ERROR    src.bing_chat.response -> CaptchaChallenge: User needs to solve CAPTCHA to continue. 
Full exception: {'type': 2, 'invocationId': '3', 'item': {'firstNewMessageIndex': None, 'defaultChatName': None, 'conversationId': '51D|BingProd|67ADA71B6CEA0CD892BA5AC76CFB9EFA5BD9F1B3ADE67794083141BF75F38ED7', 'requestId': '0f6d6c1a-c9cb-4975-8937-65fc0bd04668', 'telemetry': {'startTime': '2024-05-10T13:25:16.2207637Z'}, 'result': {'value': 'CaptchaChallenge', 'message': 'User needs to solve CAPTCHA to continue.', 'error': 'User needs to solve CAPTCHA to continue.', 'serviceVersion': '20240510.116'}}}
Traceback (most recent call last):
  File "/home/runner/DiscordBot-EdgeGPT/src/bing_chat/response.py", line 85, in send_message
    reply = await chatbot.ask(
  File "/home/runner/DiscordBot-EdgeGPT/.pythonlibs/lib/python3.10/site-packages/re_edge_gpt/chat/re_edge_gpt.py", line 120, in ask
    async for final, response in self.chat_hub.ask_stream(
  File "/home/runner/DiscordBot-EdgeGPT/.pythonlibs/lib/python3.10/site-packages/re_edge_gpt/chat/chathub.py", line 198, in ask_stream
    raise ResponseError(
re_edge_gpt.utils.exception.exceptions.ResponseError: CaptchaChallenge: User needs to solve CAPTCHA to continue. 
Full exception: {'type': 2, 'invocationId': '3', 'item': {'firstNewMessageIndex': None, 'defaultChatName': None, 'conversationId': '51D|BingProd|67ADA71B6CEA0CD892BA5AC76CFB9EFA5BD9F1B3ADE67794083141BF75F38ED7', 'requestId': '0f6d6c1a-c9cb-4975-8937-65fc0bd04668', 'telemetry': {'startTime': '2024-05-10T13:25:16.2207637Z'}, 'result': {'value': 'CaptchaChallenge', 'message': 'User needs to solve CAPTCHA to continue.', 'error': 'User needs to solve CAPTCHA to continue.', 'serviceVersion': '20240510.116'}}}

image

@CatfishGG
Copy link
Author

also, I tried doing it on my local machine with a VPN and it still doesn't work. It just displays the 2024-05-10 19:07:47 ERROR src.bing_chat.response -> 400, message='Can not decode content-encoding: br' error again.

@CatfishGG
Copy link
Author

Yep, even on github codespace it displays the same error.

image

@FuseFairy
Copy link
Owner

I saw this error, you need solve captcha first.

image

@CatfishGG
Copy link
Author

FuseFairy... How will I solve the captcha if it isn't visible to me? 💀

@FuseFairy
Copy link
Owner

here's solution
Integration-Automation/ReEdgeGPT#115

@CatfishGG
Copy link
Author

yes, thank you for the the solution but you mentioned "copilot.com" in the reply to that issue there which isn't the URL to copilot itself. You should just replace the copilot.com to https://copilot.microsoft.com/

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

2 participants