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

在创建数据库连接池时,抛出未实现的错误。 #910

Open
1 task done
547153905 opened this issue Aug 8, 2024 · 2 comments
Open
1 task done

在创建数据库连接池时,抛出未实现的错误。 #910

547153905 opened this issue Aug 8, 2024 · 2 comments
Labels

Comments

@547153905
Copy link

Describe the bug

在启动FastAPI服务时,同步创建数据库连接池出错,代码如下:
image

image

To Reproduce

1、项目中引入FastAPI,在实例化FastAPI时,在lifespan方法中,实现异步创建aiopg数据库连接池。

Expected behavior

成功创建PG数据库连接池。

Logs/tracebacks

暂无

Python Version

$ python --version
3.11

aiopg Version

$ python -m pip show aiopg
1.4.0

OS

windows 10
image

Additional context

No response

Code of Conduct

  • I agree to follow the aio-libs Code of Conduct
@547153905 547153905 added the bug label Aug 8, 2024
@547153905
Copy link
Author

请问各位大佬,有没有遇到相同问题的啊?

@547153905
Copy link
Author

谁能帮我分析分析,到底什么问题啊?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant