the issue still open.
use these way to create manager
manager_restless = APIManager(app, session=data_dict_session)
use blueprint to create api
blueprint_table = manager_restless.create_api_blueprint(***)
app.register_blueprint(blueprint_table)
add postprocessors to close session
def update_result_format(result, search_params=None, **kw):
session.remove()
but it still throw the Exception:
unexpected internal error occurs: (sqlalchemy.exc.InvalidRequestError) Can't reconnect until invalid transaction is rolled back [SQL: u'SELECT count(*) AS count_1 \nFROM dw_table \nWHERE dw_table.id != %s'] [parameters: [{}]]
version: 0.17.0