lss233 / chatgpt-mirai-qq-bot

🚀 一键部署!真正的 AI 聊天机器人!支持ChatGPT、文心一言、讯飞星火、Bing、Bard、ChatGLM、POE,多账号,人设调教,虚拟女仆、图片渲染、语音发送 | 支持 QQ、Telegram、Discord、微信 等平台
GNU Affero General Public License v3.0
13.42k stars 1.57k forks source link

[BUG] 用户访问被限制 #724

Open xixixi2000 opened 1 year ago

xixixi2000 commented 1 year ago

提交 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 的

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

预期行为
描述你认为正常情况下应该看见的情况

截图
相关日志、聊天记录的截图,没有可跳过

其他内容
此处填写其他内容,没有可跳过

lss233 commented 1 year ago

我这里无法复现这个问题,建议检查一下你的系统时间是否有误,或者 BDUSS 是否过期。

xixixi2000 commented 1 year ago

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'}

xixixi2000 commented 1 year ago

now changed to this error, the BDUSS and BAIDUID is the same with the page and does not changed, the page is working now

lss233 commented 1 year ago

你发送一下重置会话试试

xixixi2000 commented 1 year ago

it works :)

xixixi2000 commented 1 year ago

this error occored again several days before and cannot recover itself, the system time is ok, and the cookie didn't changed

xixixi2000 commented 1 year ago

it seems that this error occors when acs-token expires, the acs-token expires after about 2-3 minutes

xixixi2000 commented 1 year ago

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