FuseFairy / DiscordBot-EdgeGPT

Using Copilot, Bing Image Creator and DALLE-3 on Discord bot.
GNU General Public License v2.0
160 stars 41 forks source link

When I try using /bing, it gives an error #99

Closed HeroWarriors closed 1 year ago

HeroWarriors commented 1 year ago

When I try using /bing, it gives an error like this in the console:

ERROR    src.response -> Error while sending message: 200, message='Invalid response status', url=URL('wss://sydney.bing.com/sydney/ChatHub')
Traceback (most recent call last):
  File "/home/container/src/response.py", line 61, in send_message
    reply = await chatbot.ask(prompt=user_message, conversation_style=ConversationStyle.balanced)
  File "/home/container/.local/lib/python3.10/site-packages/EdgeGPT.py", line 652, in ask
    async for final, response in self.chat_hub.ask_stream(
  File "/home/container/.local/lib/python3.10/site-packages/EdgeGPT.py", line 458, in ask_stream
    self.wss = await self.session.ws_connect(
  File "/home/container/.local/lib/python3.10/site-packages/aiohttp/client.py", line 795, in _ws_connect
    raise WSServerHandshakeError(
aiohttp.client_exceptions.WSServerHandshakeError: 200, message='Invalid response status', url=URL('wss://sydney.bing.com/sydney/ChatHub')

What can I do?

FuseFairy commented 1 year ago

Try update your cookies, or use vpn