2.2.0 bug: type object 'Flask' has no attribute 'try_trigger_before_first_request_functions' #4727
-
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.
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
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.