Depuis la 2.2, lorsque je tente d'accéder à la partie reporting de la console j'ai cette erreur:
500 server ERROR [...] for url: api/v3/reporting_list
Sur le server j'ai ces logs:
Mar 18 15:58:04 waptserver[2937]: 2022-03-18 15:58:04,512 [waptserver.app ] ERROR Exception on /api/v3/reporting_list [GET] Mar 18 15:58:04 waptserver[2937]: Traceback (most recent call last): Mar 18 15:58:04 waptserver[2937]: File "/opt/wapt/lib/python3.8/site-packages/flask/app.py", line 2070, in wsgi_app Mar 18 15:58:04 waptserver[2937]: response = self.full_dispatch_request() Mar 18 15:58:04 waptserver[2937]: File "/opt/wapt/lib/python3.8/site-packages/flask/app.py", line 1515, in full_dispatch_request Mar 18 15:58:04 waptserver[2937]: rv = self.handle_user_exception(e) Mar 18 15:58:04 waptserver[2937]: File "/opt/wapt/lib/python3.8/site-packages/flask/app.py", line 1513, in full_dispatch_request Mar 18 15:58:04 waptserver[2937]: rv = self.dispatch_request() Mar 18 15:58:04 waptserver[2937]: File "/opt/wapt/lib/python3.8/site-packages/flask/app.py", line 1499, in dispatch_request Mar 18 15:58:04 waptserver[2937]: return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args) Mar 18 15:58:04 waptserver[2937]: File "/opt/wapt/waptserver/decorators.py", line 161, in _auth_wrapper Mar 18 15:58:04 waptserver[2937]: result = f(*args, **kwargs) Mar 18 15:58:04 waptserver[2937]: File "/opt/wapt/waptserver/decorators.py", line 317, in decorated Mar 18 15:58:04 waptserver[2937]: result = f(*args, **kwargs) Mar 18 15:58:04 waptserver[2937]: File "/opt/wapt/waptserver/decorators.py", line 243, in decorated Mar 18 15:58:04 waptserver[2937]: cnx.set_session(readonly=False) Mar 18 15:58:04 waptserver[2937]: psycopg2.ProgrammingError: set_session cannot be used inside a transaction Mar 18 15:58:04 waptserver[2937]: 2022-03-18 15:58:04,514 [waptserver ] WARNING waptdb was not closed after request. Used DB connections Count: 7