Replies: 2 comments 1 reply
|
Very late comment. I also noticed that this behavior changed v2 -> v3. The latest version of Connexion v3 injects the So if you don't mind a suggestion, maybe it's time to close this ticket? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When running a Flask based webapp with
connexion 2.x, therequestobject is usually populated upon triggering the validation function. I define this validation function in API security definition in yml file asx-basicInfoFuncas part of authentication flow. Using Python 3.11.Now, when upgrading to
connexion 3.xthe same Flask basedrequestobject is not populated. When trying to access this object I get the followingRuntimeError:RuntimeError: Working outside of operation context. This typically means that you attempted to use functionality that needed an active HTTP request. Consult the documentation on testing for information about how to avoid this problem.The expectation is Flask's
requestshould populate when using the same authentication flow inconnexion 3.xand not throw above error.Has anyone faced the same issue yet?
All reactions