-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[BUG] bing使用不了,并报错200, message='Invalid response status', url=URL('wss://sydney.bing.com/sydney/ChatHub') #1050
Comments
一样不知道怎么解决 |
一样,今天开始出现此故障,目前无解 |
一样 |
就没有大佬知道怎么解决吗? |
同样的报错: |
已解决,谢谢大佬,这是因为ip被拉黑了吗 |
我找不到worker.js文件在哪里 |
https://github.com/adams549659584/go-proxy-bingai/blob/master/cloudflare/worker.js |
佬,纯小白把chatgpt里的config.cfg的wss:link换了,还显示的是原来的wsslink...是不是还要改其他东西呢? |
按照大佬的方法仍然显示错误200....后面的地址换了仍然无法使用...你好 |
前两天还好好的,现在又不行了 |
|
这个方法只能用两~三天然后又不行了 |
在works.js第一行加一个const KievRPSSecAuth ='你的值'就可以了 |
请教一下这个值是什么 |
大佬,我加上了还是不行,只是申明这个常量,但是不用再其他地方引用他吗 |
谢谢大佬bing好了 |
哦对 忘附上后续的内容了 自己进cloudflare替换一下 |
替换了,但是还是同样的报错,不知道是VPN节点的问题还是别的,cookie也更新了。 |
已经弄好了,多谢大佬了 |
您好,请问您是怎么解决的啊,我目前也替换了worker.js ,添加了KievRPSSecAuth, 替换了gptbot里的ws_link |
额,你这个问题我也不太清楚,我的账号是有KievRPSSecAuth这个参数的。我就是按照他的步骤,js文件加了代码,然后就重启程序就行了 |
server rejected WebSocket connection: HTTP 200 是个什么情况?拒绝链接😡 |
第一个去官网随便问个问题过下人机验证,第二个网络问题 |
好的非常感写 |
WebSocket error: Error: Unexpected server response: 200 wss://sydney.bing.com/sydney/ChatHub 换个新代理可以用。 |
提交 issue 前,请先确认:
表现
描述 BUG 的表现情况
运行环境:
复现步骤
描述你是如何触发这个 BUG 的
预期行为
描述你认为正常情况下应该看见的情况
截图
相关日志、聊天记录的截图,没有可跳过
其他内容
chatgpt-qq-gocqhttp-1 | [2023-07-13 11:14:03] [INFO]: 收到好友 余温(2521245392) 的消息: 你好 (1913479678)
chatgpt-qq-chatgpt-1 | 2023-07-13 03:14:03.462 | DEBUG | platforms.onebot_bot:_:148 - 私聊消息:你好
chatgpt-qq-chatgpt-1 | 2023-07-13 03:14:03.462 | DEBUG | middlewares.concurrentlock:handle_request:40 - [Concurrent] 排队中,前面还有 0 个人!
chatgpt-qq-chatgpt-1 | 2023-07-13 03:14:03.462 | DEBUG | middlewares.concurrentlock:handle_request:42 - [Concurrent] 排到了!
chatgpt-qq-chatgpt-1 | 2023-07-13 03:14:03.462 | DEBUG | middlewares.timeout:create_timeout_task:55 - [Timeout] 开始计时……
chatgpt-qq-chatgpt-1 | 2023-07-13 03:14:03.734 | ERROR | universal:handle_message:297 - 200, message='Invalid response status', url=URL('wss://sydney.bing.com/sydney/ChatHub')
chatgpt-qq-chatgpt-1 | Traceback (most recent call last):
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/bot.py", line 59, in
chatgpt-qq-chatgpt-1 | loop.run_until_complete(asyncio.gather(*bots))
chatgpt-qq-chatgpt-1 | │ │ │ │ └ [<Task pending name='Task-2' coro=<start_task() running at /app/platforms/onebot_bot.py:356> wait_for=<_GatheringFuture pendi...
chatgpt-qq-chatgpt-1 | │ │ │ └ <function gather at 0x7f7a1cf4c720>
chatgpt-qq-chatgpt-1 | │ │ └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
chatgpt-qq-chatgpt-1 | │ └ <function BaseEventLoop.run_until_complete at 0x7f7a1cf514e0>
chatgpt-qq-chatgpt-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 640, in run_until_complete
chatgpt-qq-chatgpt-1 | self.run_forever()
chatgpt-qq-chatgpt-1 | │ └ <function BaseEventLoop.run_forever at 0x7f7a1cf51440>
chatgpt-qq-chatgpt-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
chatgpt-qq-chatgpt-1 | self._run_once()
chatgpt-qq-chatgpt-1 | │ └ <function BaseEventLoop._run_once at 0x7f7a1cf53240>
chatgpt-qq-chatgpt-1 | └ <_UnixSelectorEventLoop running=True closed=False debug=False>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
chatgpt-qq-chatgpt-1 | handle._run()
chatgpt-qq-chatgpt-1 | │ └ <function Handle._run at 0x7f7a1d4b4180>
chatgpt-qq-chatgpt-1 | └ <Handle Task.task_wakeup()>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
chatgpt-qq-chatgpt-1 | self._context.run(self._callback, *self._args)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ <member '_args' of 'Handle' objects>
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <Handle Task.task_wakeup()>
chatgpt-qq-chatgpt-1 | │ │ │ └ <member '_callback' of 'Handle' objects>
chatgpt-qq-chatgpt-1 | │ │ └ <Handle Task.task_wakeup()>
chatgpt-qq-chatgpt-1 | │ └ <member '_context' of 'Handle' objects>
chatgpt-qq-chatgpt-1 | └ <Handle Task.task_wakeup()>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/platforms/onebot_bot.py", line 151, in _
chatgpt-qq-chatgpt-1 | await handle_message(
chatgpt-qq-chatgpt-1 | └ <function handle_message at 0x7f79de56d800>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | > File "/app/universal.py", line 271, in handle_message
chatgpt-qq-chatgpt-1 | await action(session_id, message.strip(), conversation_context, respond)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ │ └ <method 'strip' of 'str' objects>
chatgpt-qq-chatgpt-1 | │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | └ <function handle_message..wrap_request..call at 0x7f79dc3bda80>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/universal.py", line 53, in call
chatgpt-qq-chatgpt-1 | await m.handle_request(session_id, message, respond, conversation_context, n)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ └ <function handle_message..wrap_request..call at 0x7f79dc3bd760>
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | │ └ <function MiddlewareConcurrentLock.handle_request at 0x7f79de287e20>
chatgpt-qq-chatgpt-1 | └ <middlewares.concurrentlock.MiddlewareConcurrentLock object at 0x7f79de2dcb50>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/middlewares/concurrentlock.py", line 43, in handle_request
chatgpt-qq-chatgpt-1 | await action(session_id, prompt, conversation_context, respond)
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | └ <function handle_message..wrap_request..call at 0x7f79dc3bd760>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/universal.py", line 53, in call
chatgpt-qq-chatgpt-1 | await m.handle_request(session_id, message, respond, conversation_context, n)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ └ <function handle_message..wrap_request..call at 0x7f79dc3bd1c0>
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | │ └ <function Middleware.handle_request at 0x7f79de287100>
chatgpt-qq-chatgpt-1 | └ <middlewares.baiducloud.MiddlewareBaiduCloud object at 0x7f79de2dcbd0>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/middlewares/middleware.py", line 9, in handle_request
chatgpt-qq-chatgpt-1 | await action(session_id, prompt, conversation_context, respond)
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | └ <function handle_message..wrap_request..call at 0x7f79dc3bd1c0>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/universal.py", line 53, in call
chatgpt-qq-chatgpt-1 | await m.handle_request(session_id, message, respond, conversation_context, n)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ └ <function handle_message..wrap_request..call at 0x7f79dc3bca40>
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | │ └ <function MiddlewareRatelimit.handle_request at 0x7f79de287060>
chatgpt-qq-chatgpt-1 | └ <middlewares.ratelimit.MiddlewareRatelimit object at 0x7f79de2dcb90>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/middlewares/ratelimit.py", line 23, in handle_request
chatgpt-qq-chatgpt-1 | await action(session_id, prompt, conversation_context, respond)
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | └ <function handle_message..wrap_request..call at 0x7f79dc3bca40>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/universal.py", line 53, in call
chatgpt-qq-chatgpt-1 | await m.handle_request(session_id, message, respond, conversation_context, n)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ │ └ <function handle_message..request at 0x7f79dc3bd440>
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ None
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function handle_message..respond at 0x7f79dc3bd6c0>
chatgpt-qq-chatgpt-1 | │ │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ │ └ 'friend-2521245392'
chatgpt-qq-chatgpt-1 | │ └ <function MiddlewareTimeout.handle_request at 0x7f79de287ec0>
chatgpt-qq-chatgpt-1 | └ <middlewares.timeout.MiddlewareTimeout object at 0x7f79df5a0910>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/middlewares/timeout.py", line 27, in handle_request
chatgpt-qq-chatgpt-1 | await asyncio.wait_for(coro_task, config.response.max_timeout)
chatgpt-qq-chatgpt-1 | │ │ │ │ │ └ 600.0
chatgpt-qq-chatgpt-1 | │ │ │ │ └ Response(mode='mixed', buffer_delay=15.0, default_ai='bing', error_format='出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚会话” 来...
chatgpt-qq-chatgpt-1 | │ │ │ └ Config(onebot=Onebot(manager_qq=2521245392, reverse_ws_host='0.0.0.0', reverse_ws_port=8554), mirai=None, telegram=None, disc...
chatgpt-qq-chatgpt-1 | │ │ └ <Task finished name='Task-652' coro=<handle_message..request() done, defined at /app/universal.py:107> exception=WSSe...
chatgpt-qq-chatgpt-1 | │ └ <function wait_for at 0x7f7a1cf4c180>
chatgpt-qq-chatgpt-1 | └ <module 'asyncio' from '/usr/local/lib/python3.11/asyncio/init.py'>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/asyncio/tasks.py", line 479, in wait_for
chatgpt-qq-chatgpt-1 | return fut.result()
chatgpt-qq-chatgpt-1 | │ └ <method 'result' of '_asyncio.Task' objects>
chatgpt-qq-chatgpt-1 | └ <Task finished name='Task-652' coro=<handle_message..request() done, defined at /app/universal.py:107> exception=WSSe...
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/universal.py", line 224, in request
chatgpt-qq-chatgpt-1 | async for rendered in task:
chatgpt-qq-chatgpt-1 | └ <async_generator object retry..decorator..wrapper at 0x7f79de2895a0>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/utils/retry.py", line 21, in wrapper
chatgpt-qq-chatgpt-1 | async for result in func(*args, **kwargs):
chatgpt-qq-chatgpt-1 | │ │ └ {'prompt': '你好', 'chain': MessageChain([Plain(text='你好')]), 'name': '余温'}
chatgpt-qq-chatgpt-1 | │ └ (<conversation.ConversationContext object at 0x7f79de30d1d0>,)
chatgpt-qq-chatgpt-1 | └ <function ConversationContext.ask at 0x7f79de2868e0>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/conversation.py", line 195, in ask
chatgpt-qq-chatgpt-1 | async for item in self.adapter.ask(prompt):
chatgpt-qq-chatgpt-1 | │ │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ │ └ <function BingAdapter.ask at 0x7f79de52efc0>
chatgpt-qq-chatgpt-1 | │ └ <adapter.ms.bing.BingAdapter object at 0x7f79dec06750>
chatgpt-qq-chatgpt-1 | └ <conversation.ConversationContext object at 0x7f79de30d1d0>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/adapter/ms/bing.py", line 127, in ask
chatgpt-qq-chatgpt-1 | raise e
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/app/adapter/ms/bing.py", line 63, in ask
chatgpt-qq-chatgpt-1 | async for final, response in self.bot.ask_stream(prompt=prompt,
chatgpt-qq-chatgpt-1 | │ │ │ └ '你好'
chatgpt-qq-chatgpt-1 | │ │ └ <function Chatbot.ask_stream at 0x7f79deb211c0>
chatgpt-qq-chatgpt-1 | │ └ <EdgeGPT.Chatbot object at 0x7f79de30f790>
chatgpt-qq-chatgpt-1 | └ <adapter.ms.bing.BingAdapter object at 0x7f79dec06750>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/site-packages/EdgeGPT.py", line 784, in ask_stream
chatgpt-qq-chatgpt-1 | async for response in self.chat_hub.ask_stream(
chatgpt-qq-chatgpt-1 | │ │ └ <function _ChatHub.ask_stream at 0x7f79deb20cc0>
chatgpt-qq-chatgpt-1 | │ └ <EdgeGPT._ChatHub object at 0x7f79de31ff90>
chatgpt-qq-chatgpt-1 | └ <EdgeGPT.Chatbot object at 0x7f79de30f790>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/site-packages/EdgeGPT.py", line 546, in ask_stream
chatgpt-qq-chatgpt-1 | self.wss = await self.session.ws_connect(
chatgpt-qq-chatgpt-1 | │ │ │ │ └ <function ClientSession.ws_connect at 0x7f7a1c032a20>
chatgpt-qq-chatgpt-1 | │ │ │ └ <aiohttp.client.ClientSession object at 0x7f79dc3ae610>
chatgpt-qq-chatgpt-1 | │ │ └ <EdgeGPT._ChatHub object at 0x7f79de31ff90>
chatgpt-qq-chatgpt-1 | │ └ None
chatgpt-qq-chatgpt-1 | └ <EdgeGPT._ChatHub object at 0x7f79de31ff90>
chatgpt-qq-chatgpt-1 | File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 795, in _ws_connect
chatgpt-qq-chatgpt-1 | raise WSServerHandshakeError(
chatgpt-qq-chatgpt-1 | └ <class 'aiohttp.client_exceptions.WSServerHandshakeError'>
chatgpt-qq-chatgpt-1 |
chatgpt-qq-chatgpt-1 | aiohttp.client_exceptions.WSServerHandshakeError: 200, message='Invalid response status', url=URL('wss://sydney.bing.com/sydney/ChatHub')
chatgpt-qq-chatgpt-1 | 2023-07-13 03:14:03.739 | DEBUG | platforms.onebot_bot:respond:112 - [OneBot] 尝试发送消息:出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚会话” 来回溯到上一条对话,你上一条说的我就当作没看见。
chatgpt-qq-chatgpt-1 | 200, message='Invalid response status', url=URL('wss://sydney.bing.com/sydney/ChatHub')
The text was updated successfully, but these errors were encountered: