Skip to content
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] Exception: 用户访问被限制 #676

Closed
wzh195879702 opened this issue Apr 20, 2023 · 6 comments
Closed

[BUG] Exception: 用户访问被限制 #676

wzh195879702 opened this issue Apr 20, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@wzh195879702
Copy link

提交 issue 前,请先确认:
我已看过 FAQ,此问题不在列表中
我已看过其他 issue,他们不能解决我的问题
我认为这不是 Mirai 或者 OpenAI 的 BUG

表现
使用文心一言时返回 Exception: 用户访问被限制

运行环境:

  • 操作系统:Ubuntu 22.04 64位
  • Docker: ?
  • 项目版本:2.4.1

复现步骤
使用文心一言时返回 Exception: 用户访问被限制

root@iZ0jl6ghcrq4nalxyy1npmZ:~# screen -S robo
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 607, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0x7f3eb4046de0>
└ <_UnixSelectorEventLoop running=True closed=False debug=False>
File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1922, in _run_once
handle._run()
│ └ <function Handle._run at 0x7f3eb458bc40>
└ <Handle <TaskStepMethWrapper object at 0x7f3eaf145660>()>
File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle <TaskStepMethWrapper object at 0x7f3eaf145660>()>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle <TaskStepMethWrapper object at 0x7f3eaf145660>()>
│ └ <member '_context' of 'Handle' objects>
└ <Handle <TaskStepMethWrapper object at 0x7f3eaf145660>()>

File "/app/universal.py", line 206, in request
async for rendered in task:
└ <async_generator object retry..decorator..wrapper at 0x7f3eb0eab5b0>

File "/app/utils/retry.py", line 21, in wrapper
async for result in func(*args, **kwargs):
│ │ └ {'prompt': '你好', 'chain': MessageChain([Plain(text='你好')]), 'name': '123'}
│ └ (<conversation.ConversationContext object at 0x7f3eaf0a4490>,)
└ <function ConversationContext.ask at 0x7f3eb0f0f240>

File "/app/conversation.py", line 173, in ask
async for item in self.adapter.ask(prompt):
│ │ │ └ '你好'
│ │ └ <function YiyanAdapter.ask at 0x7f3eb1dba980>
│ └ <adapter.baidu.yiyan.YiyanAdapter object at 0x7f3eb1152910>
└ <conversation.ConversationContext object at 0x7f3eaf0a4490>

File "/app/adapter/baidu/yiyan.py", line 106, in ask
self.__check_response(req.json())
│ │ └ <function Response.json at 0x7f3eb2a300e0>
│ └ <Response [200 OK]>
└ <adapter.baidu.yiyan.YiyanAdapter object at 0x7f3eb1152910>

File "/app/adapter/baidu/yiyan.py", line 162, in __check_response
raise Exception(resp['msg'])
└ {'code': 40005, 'msg': '用户访问被限制', 'data': None, 'logId': '118000001028738511'}

Exception: 用户访问被限制

@wzh195879702 wzh195879702 added the bug Something isn't working label Apr 20, 2023
@superboyyy
Copy link

大概率被封号了

@wzh195879702
Copy link
Author

但官网还能正常使用

大概率被封号了

@lss233
Copy link
Owner

lss233 commented Apr 20, 2023

已修复。

@lss233 lss233 closed this as completed Apr 25, 2023
@xixixi2000
Copy link

已修复。

the problem still exist yet

@xixixi2000
Copy link

it still happens from yesterday

@beichen123-hub
Copy link

修复在哪里了 还是没办法使用也更新了最新版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants