DiscordBot-EdgeGPT icon indicating copy to clipboard operation
DiscordBot-EdgeGPT copied to clipboard

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

Open CatfishGG opened this issue 2 years ago • 10 comments

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?

CatfishGG avatar May 10 '24 13:05 CatfishGG

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

image

FuseFairy avatar May 10 '24 13:05 FuseFairy

alright wait. Let me try a VPN

CatfishGG avatar May 10 '24 13:05 CatfishGG

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

FuseFairy avatar May 10 '24 13:05 FuseFairy

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 avatar May 10 '24 13:05 CatfishGG

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 avatar May 10 '24 13:05 CatfishGG

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

image

CatfishGG avatar May 10 '24 13:05 CatfishGG

I saw this error, you need solve captcha first.

image

FuseFairy avatar May 10 '24 14:05 FuseFairy

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

CatfishGG avatar May 10 '24 14:05 CatfishGG

here's solution https://github.com/Integration-Automation/ReEdgeGPT/issues/115

FuseFairy avatar May 10 '24 14:05 FuseFairy

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/

CatfishGG avatar May 10 '24 15:05 CatfishGG