-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
MethodViewResolver not work with AioHTTP #1128
Comments
This is because aiohttp creates a View for each request, and Flask when the application is initialized |
I wasn't able to reproduce this. I took the methodresolver example as you suggested, replaced |
@dtkav |
Thanks for the more complete example. The following works for me:
|
This way you will just get a class with the get method. Here is the recommended method https://docs.aiohttp.org/en/stable/web_quickstart.html#class-based-views. |
@dtkav ? |
@jmcs please take a look |
Outdated since #1491 |
Description
Tried using aiohttp.web.View with MethodViewResolver, as in the example, but there is Flask (https://github.com/zalando/connexion/tree/master/examples/openapi3/methodresolver). Maybe I'm doing something wrong ?
Expected behaviour
The app started
Actual behaviour
Getting an error
Steps to reproduce
Take an example https://github.com/zalando/connexion/tree/master/examples/openapi3/methodresolver, replace the Flask with AioHTTP
Additional info:
Output of the commands:
python --version
Python 3.7.4
pip show connexion | grep "^Version\:"
Version: 2.5.1
The text was updated successfully, but these errors were encountered: