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

Flask App errors when passed to Asgi.entry_point #25

Open
Lewiscowles1986 opened this issue May 28, 2024 · 2 comments
Open

Flask App errors when passed to Asgi.entry_point #25

Lewiscowles1986 opened this issue May 28, 2024 · 2 comments

Comments

@Lewiscowles1986
Copy link

[ERROR] TypeError: Flask.call() takes 3 positional arguments but 4 were given

lambda_function.py

from asgi_aws import Asgi

from app import app

lambda_handler = Asgi.entry_point(app)
@Lewiscowles1986
Copy link
Author

Also if I use FlaskApp from connexion 3; I get other behaviour as outlined in abersheeran/a2wsgi#56

I personally can imagine viewpoints of both libraries being incorrect for different reasons. Primarily though, it seems to me that this library is not handling an ASGI which sends an incomplete response body, and has more to transmit.

@Lewiscowles1986
Copy link
Author

Lewiscowles1986 commented May 28, 2024

I Have attached the code to that other Issue as well as a "fixed" version. Personally I'm not convinced it is "fixed", as much as overcame one of the top 10 bugs I encountered while tinkering.

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