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

'ConnexionMiddleware' object has no attribute 'routes' #2034

Open
lasoama opened this issue Feb 16, 2025 · 0 comments
Open

'ConnexionMiddleware' object has no attribute 'routes' #2034

lasoama opened this issue Feb 16, 2025 · 0 comments

Comments

@lasoama
Copy link

lasoama commented Feb 16, 2025

Hi,

it seems there is an issue when trying to use MetricsMiddleware alongside with AsyncApp from connexion.
It returns the error: 'ConnexionMiddleware' object has no attribute 'routes'.

connexion==3.2.0
aioprometheus==23.12.0 with extras aiohttp and starlette

    connexion_app = AsyncApp(__name__, specification_dir="api")
    connexion_app.add_api("openapi.yaml", validate_responses=True, base_path=base_path)

    connexion_app.add_middleware(MetricsMiddleware)

    return connexion_app
@lasoama lasoama changed the title ConnexionMiddleware' object has no attribute 'routes ConnexionMiddleware' object has no attribute 'routes' Feb 16, 2025
@lasoama lasoama changed the title ConnexionMiddleware' object has no attribute 'routes' 'ConnexionMiddleware' object has no attribute 'routes' Feb 16, 2025
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