You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're trying to build an API using flask-mysql. When flask has DEBUG=True we're getting the error below.
AssertionError
AssertionError: A setup function was called after the first request was handled. This usually indicates a bug in the application where a module was not imported and decorators or other functionality was called too late.
To fix this make sure to import all your view modules, database models and everything related at a central place before the application starts serving requests.
Once we remove the DEBUG flask option the application is able to communicate with the MYSQL database just fine.
The text was updated successfully, but these errors were encountered:
Hello,
We're trying to build an API using flask-mysql. When flask has DEBUG=True we're getting the error below.
AssertionError
AssertionError: A setup function was called after the first request was handled. This usually indicates a bug in the application where a module was not imported and decorators or other functionality was called too late.
To fix this make sure to import all your view modules, database models and everything related at a central place before the application starts serving requests.
Once we remove the DEBUG flask option the application is able to communicate with the MYSQL database just fine.
The text was updated successfully, but these errors were encountered: