Bug #475
closedappservices return error then no instances found
Description
handle the notFound exception
) Gecko/20100101 Firefox/119.0"
[2023-11-24 14:30:14,693] ERROR in app: Exception on /api/apps/v1/instances/ [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1523, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1509, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.9/site-packages/flask_restx/api.py", line 403, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/flask/views.py", line 84, in view
return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/flask_restx/resource.py", line 49, in dispatch_request
resp = meth(*args, **kwargs)
File "/app/appsservice/helpers.py", line 25, in wrapper
return fn(*args, **kwargs)
File "/app/appsservice/instances.py", line 43, in get
instances = dao.get_instances(args.get("org"), args.get("app"))
File "/app/appsservice/dao.py", line 203, in get_instances
raise FileNotFoundError
FileNotFoundError
Updated by Anonymous about 2 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset appsservice|8b051af105c0130a35ca821de6c80032e5d96769.