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

Error registering DbHealthProvider using SQLAlchemy AsyncEngine #116

Open
angelgonzalbez opened this issue Sep 3, 2024 · 0 comments
Open

Comments

@angelgonzalbez
Copy link

I'm trying to register a DbHealthProvider using an async connection, but I'm getting status DOWN with the following message:

"db": {
"status": "DOWN",
"details": {
"engine": "postgresql",
"failure": "'AsyncConnection' object does not support the context manager protocol"
}
}

I tried passing my_engine.sync_engine, but I'm encountering this error:

"db": {
"status": "DOWN",
"details": {
"engine": "postgresql",
"failure": "greenlet_spawn has not been called; can't call await_only() here. Was IO attempted in an unexpected place? (Background on this error at: https://sqlalche.me/e/20/xd2s)"
}
}

@angelgonzalbez angelgonzalbez changed the title Error setting DbHealthProvider using SQLAlchemy AsyncEngine Error registering DbHealthProvider using SQLAlchemy AsyncEngine Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant