2.2.0 bug: type object 'Flask' has no attribute 'try_trigger_before_first_request_functions' #4727
Answered
by
davidism
kdieudonne-adeo
asked this question in
Q&A
-
when running gunicorn with flask 2.2.0 i get this error as soon as i start the program, downgrading to 2.1.2 fix this problem edit: might have been better placed in issues, didn't see it before posting |
Beta Was this translation helpful? Give feedback.
Answered by
davidism
Aug 2, 2022
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
kdieudonne-adeo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
before_first_request
is deprecated and will be removed in Flask 2.3. As part of that, some internals were refactored for performance, includingtry_trigger_before_first_request_functions
method. What code were you using that was calling this method? This method was not intended as a public API, and will be going away completely in the next feature release, so it's probably better to address whatever is using it.