Skip to content
This repository was archived by the owner on Jan 22, 2024. It is now read-only.
This repository was archived by the owner on Jan 22, 2024. It is now read-only.

[Bug]: bing 报错 KeyError: 'conversationSignature' #9

Description

@abinjob

在提交前请确保以下这些

  • Chat-WebAPI为最新版本
  • GoogleBard,EdgeGPT,BingImageCreator,revChatGPT,easy-ernie为最新版本
  • 在Issue无法找到它

操作系统

Windows

Python版本

3.10

问题

Traceback (most recent call last):
File "F:\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "F:\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\fastapi\applications.py", line 1115, in call
await super().call(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
File "D:\Chat-WebAPI-main\main.py", line 56, in middleware
response = await call_next(request)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call
raise e
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "D:\Chat-WebAPI-main\view\bing.py", line 101, in ask
token, chatBot = chat_bot.generateChatBot('Bing')
File "D:\Chat-WebAPI-main\module\chat_bot.py", line 28, in generateChatBot
chatBot = EdgeGPT.EdgeGPT.Chatbot(proxy=config.PROXY, cookies=BING_COOKIE)
File "F:\Python\Python310\lib\site-packages\EdgeGPT\EdgeGPT.py", line 28, in init
self.chat_hub: ChatHub = ChatHub(
File "F:\Python\Python310\lib\site-packages\EdgeGPT\chathub.py", line 42, in init
conversation_signature=conversation.struct["conversationSignature"],
KeyError: 'conversationSignature'

触发

post
http://127.0.0.1:222/bing/ask
{"question":"用我爱刘亦菲写首藏头诗"}

报错

Traceback (most recent call last):
File "F:\Python\Python310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
result = await app( # type: ignore[func-returns-value]
File "F:\Python\Python310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 84, in call
return await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\fastapi\applications.py", line 1115, in call
await super().call(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\applications.py", line 122, in call
await self.middleware_stack(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 184, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\errors.py", line 162, in call
await self.app(scope, receive, _send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 108, in call
response = await self.dispatch_func(request, call_next)
File "D:\Chat-WebAPI-main\main.py", line 56, in middleware
response = await call_next(request)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 84, in call_next
raise app_exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\base.py", line 70, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\cors.py", line 83, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 79, in call
raise exc
File "F:\Python\Python310\lib\site-packages\starlette\middleware\exceptions.py", line 68, in call
await self.app(scope, receive, sender)
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 20, in call
raise e
File "F:\Python\Python310\lib\site-packages\fastapi\middleware\asyncexitstack.py", line 17, in call
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 718, in call
await route.handle(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 276, in handle
await self.app(scope, receive, send)
File "F:\Python\Python310\lib\site-packages\starlette\routing.py", line 66, in app
response = await func(request)
File "D:\Chat-WebAPI-main\view\bing.py", line 101, in ask
token, chatBot = chat_bot.generateChatBot('Bing')
File "D:\Chat-WebAPI-main\module\chat_bot.py", line 28, in generateChatBot
chatBot = EdgeGPT.EdgeGPT.Chatbot(proxy=config.PROXY, cookies=BING_COOKIE)
File "F:\Python\Python310\lib\site-packages\EdgeGPT\EdgeGPT.py", line 28, in init
self.chat_hub: ChatHub = ChatHub(
File "F:\Python\Python310\lib\site-packages\EdgeGPT\chathub.py", line 42, in init
conversation_signature=conversation.struct["conversationSignature"],
KeyError: 'conversationSignature'

其他

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions