Comments (3)
尝试打印过拿到的数据 给的是一个html的片段 最后处理报错了
from chatgpt-mirai-qq-bot.
我遇到的是完全一致的问题
from chatgpt-mirai-qq-bot.
` File "asyncio\events.py", line 80, in _run
self._loop = loop
│ └ <member '_loop' of 'Handle' objects>
└ <Handle Task.task_wakeup()>
File "C:\0000\chatgpt\framework\platforms\http_service_legacy.py", line 107, in process_request
await handle_message(
└ <function handle_message at 0x000001856E9D3D80>
File "C:\0000\chatgpt\framework\universal.py", line 264, in handle_message
await action(request, response)
│ │ └ <framework.request.Response object at 0x000001856E3D7BD0>
│ └ <framework.platforms.http_service_legacy.BotRequest object at 0x000001856E37A910>
└ functools.partial(<bound method MiddlewareConcurrentLock.handle_request of <framework.middlewares.concurrentlock.MiddlewareCo...
File "C:\0000\chatgpt\framework\middlewares\concurrentlock.py", line 44, in handle_request
await _next(request, response)
│ │ └ <framework.request.Response object at 0x000001856E3D7BD0>
│ └ <framework.platforms.http_service_legacy.BotRequest object at 0x000001856E37A910>
└ functools.partial(<bound method Middleware.handle_request of <framework.middlewares.baiducloud.MiddlewareBaiduCloud object at...
File "C:\0000\chatgpt\framework\middlewares\middleware.py", line 8, in handle_request
return await _next(request, response)
│ │ └ <framework.request.Response object at 0x000001856E3D7BD0>
│ └ <framework.platforms.http_service_legacy.BotRequest object at 0x000001856E37A910>
└ functools.partial(<bound method MiddlewareRatelimit.handle_request of <framework.middlewares.ratelimit.MiddlewareRatelimit ob...
File "C:\0000\chatgpt\framework\middlewares\ratelimit.py", line 24, in handle_request
await _next(request, response)
│ │ └ <framework.request.Response object at 0x000001856E3D7BD0>
│ └ <framework.platforms.http_service_legacy.BotRequest object at 0x000001856E37A910>
└ functools.partial(<bound method MiddlewareTimeout.handle_request of <framework.middlewares.timeout.MiddlewareTimeout object a...
File "C:\0000\chatgpt\framework\middlewares\timeout.py", line 28, in handle_request
await asyncio.wait_for(coro_task, config.response.max_timeout)
│ │ │ │ │ └ 600.0
│ │ │ │ └ Response(mode='mixed', buffer_delay=15.0, default_ai='yiyan', error_format='出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚对话” ...
│ │ │ └ Config(onebot=Onebot(manager_qq=0), mirai=None, telegram=None, discord=None, http=HttpService(host='0.0.0.0', port=8234, debu...
│ │ └ <Task finished name='Task-24' coro=<handle_message.._request_func() done, defined at C:\0000\chatgpt\framework\univer...
│ └ <function wait_for at 0x0000018542939DA0>
└ <module 'asyncio' from 'C:\0000\python3.11\python311.zip\asyncio\init.pyc'>
File "asyncio\tasks.py", line 479, in wait_for
for f in todo:
File "C:\0000\chatgpt\framework\universal.py", line 255, in _request_func
await context.input(prompt=request.message)
│ │ │ └ MessageChain([Plain(text='你好')])
│ │ └ <framework.platforms.http_service_legacy.BotRequest object at 0x000001856E37A910>
│ └ <function AsyncPromptExecutionContext.input at 0x000001856E8689A0>
└ <framework.conversation.AsyncPromptExecutionContext object at 0x00000185484D95D0>
File "C:\0000\chatgpt\framework\conversation.py", line 71, in input
async for item in self.conversation.llm_adapter.ask(self.variables["input"]["message"]):
│ │ │ │ │ └ {'input': {'message': '你好'}, 'user': {'nickname': 'NewWorld'}, 'output': {}, 'tts_engine': {}}
│ │ │ │ └ <framework.conversation.AsyncPromptExecutionContext object at 0x00000185484D95D0>
│ │ │ └ <function YiyanAdapter.ask at 0x000001856E240A40>
│ │ └ <framework.llm.baidu.yiyan.YiyanAdapter object at 0x000001856EB3B410>
│ └ <framework.conversation.ConversationContext object at 0x000001856EB3BC90>
└ <framework.conversation.AsyncPromptExecutionContext object at 0x00000185484D95D0>
File "C:\0000\chatgpt\framework\llm\baidu\yiyan.py", line 92, in ask
self.client.headers['Acs-Token'] = await self.get_sign()
│ │ │ │ └ <function YiyanAdapter.get_sign at 0x000001856E240B80>
│ │ │ └ <framework.llm.baidu.yiyan.YiyanAdapter object at 0x000001856EB3B410>
│ │ └ <property object at 0x0000018544FBAB60>
│ └ <httpx.AsyncClient object at 0x000001856E244C10>
└ <framework.llm.baidu.yiyan.YiyanAdapter object at 0x000001856EB3B410>
File "C:\0000\chatgpt\framework\llm\baidu\yiyan.py", line 189, in get_sign
return req.json()['acs']
│ └ <function Response.json at 0x0000018544E4C040>
└ <Response [502 Bad Gateway]>
File "C:\0000\python3.11\Lib\site-packages\httpx_models.py", line 756, in json
return jsonlib.loads(self.text, **kwargs)
│ │ │ │ └ {}
│ │ │ └ <property object at 0x0000018544E376F0>
│ │ └ <Response [502 Bad Gateway]>
│ └ <function loads at 0x000001854317D620>
└ <module 'json' from 'C:\0000\python3.11\python311.zip\json\init.pyc'>
File "json_init_.py", line 346, in loads
File "json\decoder.py", line 337, in decode
File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)`
from chatgpt-mirai-qq-bot.
Related Issues (20)
- [BUG] ErrorOpenAI: {} (code: 400)
- [BUG] 请填写标题 HOT 4
- [BUG] 日志貌似全部正常,但无法获得回复 HOT 3
- [Feature] 进群和退群触发? HOT 1
- 未登录config中的openAI账号,而直接显示 登录完毕,共有 0/0 个账号成功登录。 HOT 4
- [Feature] 能否添加支持 Coze
- 运行2.5.2出现的bug
- wechat 发送语音的返回格式问题
- [Feature] 能否添加对通义千问的支持 HOT 1
- [Feature] 请求添加ollama的支持
- openai库版本还是0.27,能不能升级一下 HOT 1
- 网站里的Windows 快速部署教程(go-cqhttp版)视频挂了 HOT 1
- [BUG] 对于中转api可能会登录失败的问题 HOT 1
- [Feature] 有没有老哥有网页接入点的项目呀 HOT 1
- [BUG] 启动失败 HOT 1
- [Feature] 希望Bing回答中过滤掉没用的“了解详细信息”部分
- [BUG] 尝试发送消息:出现故障!如果这个问题持续出现,请和我说“重置会话” 来开启一段新的会话,或者发送 “回滚对话” 来回溯到上一条对话,你上一条说的我就当作没看见。
- [Feature] 希望添加对于自定义其它ChatGPT-APIkey接口地址的支持
- Window 手动部署,Mirai 使用了签名服务依旧无法登录
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-mirai-qq-bot.