Open xixixi2000 opened 1 year ago
我这里无法复现这个问题,建议检查一下你的系统时间是否有误,或者 BDUSS 是否过期。
File "/root/chatgpt-mirai-qq-bot/adapter/baidu/yiyan.py", line 126, in ask self.__check_response(req.json()) │ │ └ <function Response.json at 0x7f7bbd81e820> │ └ <Response [200 OK]> └ <adapter.baidu.yiyan.YiyanAdapter object at 0x7f7bba413b80>
File "/root/chatgpt-mirai-qq-bot/adapter/baidu/yiyan.py", line 184, in __check_response raise Exception(resp['msg']) └ {'code': 1, 'msg': '换个话题重新开始吧,请点击新建对话', 'data': None, 'logId': '118000001369802845'}
now changed to this error, the BDUSS and BAIDUID is the same with the page and does not changed, the page is working now
你发送一下重置会话试试
it works :)
this error occored again several days before and cannot recover itself, the system time is ok, and the cookie didn't changed
it seems that this error occors when acs-token expires, the acs-token expires after about 2-3 minutes
sorry , it is not the time, but the access times, it seems that a acs-token can be use 3 times? but sometimes, it can be use more
提交 issue 前,请先确认:
表现
描述 BUG 的表现情况
File "/root/chatgpt-mirai-qq-bot/adapter/baidu/yiyan.py", line 126, in ask self.__check_response(req.json()) │ │ └ <function Response.json at 0x7f7bbd81e820> │ └ <Response [200 OK]> └ <adapter.baidu.yiyan.YiyanAdapter object at 0x7f7bba413b80>
File "/root/chatgpt-mirai-qq-bot/adapter/baidu/yiyan.py", line 184, in __check_response raise Exception(resp['msg']) └ {'code': 40005, 'msg': '用户访问被限制', 'data': None, 'logId': '118000001352911646'}
运行环境:
复现步骤
描述你是如何触发这个 BUG 的
预期行为
描述你认为正常情况下应该看见的情况
截图
相关日志、聊天记录的截图,没有可跳过
其他内容
此处填写其他内容,没有可跳过