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: nonebot-plugin-orm 未初始化 #460

Closed
sentry-io bot opened this issue Dec 4, 2023 · 2 comments
Closed

bug: nonebot-plugin-orm 未初始化 #460

sentry-io bot opened this issue Dec 4, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 4, 2023

Sentry Issue: COOLQBOT-G9

2023-12-04 10:01:58.120 | INFO     | nonebot:log:270 - Kaiheila | Bot xxxxx connected
RuntimeError: nonebot-plugin-orm 未初始化
(4 additional frame(s) were not displayed)
...
  File "nonebot/dependencies/__init__.py", line 209, in _solve_field
    value = await param._solve(**params)
  File "nonebot/internal/params.py", line 221, in _solve
    return await task
  File "contextlib.py", line 638, in enter_async_context
    result = await _enter(cm)
  File "contextlib.py", line 204, in __aenter__
    return await anext(self.gen)
  File "__init__.py", line 128, in get_scoped_session
    raise RuntimeError("nonebot-plugin-orm 未初始化") from None

2023-12-04 10:01:58.139 | ERROR    | nonebot:_run_hook:158 - Error when running WebSocketConnection hook. Running cancelled!
Traceback (most recent call last):

  File "/usr/local/bin/gunicorn", line 8, in <module>
    sys.exit(run())
    |   |    -> <function run at 0x7f43ef0ed580>
    |   -> <built-in function exit>
    -> <module 'sys' (built-in)>
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/wsgiapp.py", line 67, in run
    WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
    -> <class 'gunicorn.app.wsgiapp.WSGIApplication'>
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 231, in run
    super().run()
  File "/usr/local/lib/python3.11/site-packages/gunicorn/app/base.py", line 72, in run
    Arbiter(self).run()
    |       -> <gunicorn.app.wsgiapp.WSGIApplication object at 0x7f43ef0fc3d0>
    -> <class 'gunicorn.arbiter.Arbiter'>
  File "/usr/local/lib/python3.11/site-packages/gunicorn/arbiter.py", line 202, in run
    self.manage_workers()
    |    -> ...
@sentry-io sentry-io bot added the bug Something isn't working label Dec 4, 2023
@he0119
Copy link
Owner

he0119 commented Dec 4, 2023

相关议题: nonebot/nonebot2#2475

@he0119
Copy link
Owner

he0119 commented Mar 1, 2024

@he0119 he0119 closed this as completed Mar 1, 2024
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

1 participant