Engine-API returns 500 on every request
When trying to fetch data from engine-api I get an error code 500 in the request. I does not matter which endpoint I use.
I noticed this while testing my latest changes in engine-core. If I check out this commit and build+start the container myself, everything works as intended.
Steps to Reproduce
- Follow the installation steps for aura-playout
- Only start engine-api and engine-api-postgres
- Try to query any data, for example
http://localhost:8008/api/v1/trackservice/current
- Observe the response:
status code 500
- Set up a custom docker container with this commit
- Build and start the container
- Try to query any data
- Observe the response
status code 200
Expected Result
Meaningful data.
Actual Result
Internal server error 500.
Logs & configuration
If applicable, please provide:
logs/engine-api-gunicorn-error.log
Traceback (most recent call last):
File "/opt/.cache/virtualenvs/aura-engine-api-o9msT97p-py3.11/lib/python3.11/site-packages/flask/app.py", line 2529, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/.cache/virtualenvs/aura-engine-api-o9msT97p-py3.11/lib/python3.11/site-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/.cache/virtualenvs/aura-engine-api-o9msT97p-py3.11/lib/python3.11/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/.cache/virtualenvs/aura-engine-api-o9msT97p-py3.11/lib/python3.11/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/.cache/virtualenvs/aura-engine-api-o9msT97p-py3.11/lib/python3.11/site-packages/connexion/decorators/decorator.py", line 68, in wrapper
response = function(request)
^^^^^^^^^^^^^^^^^
File "/opt/.cache/virtualenvs/aura-engine-api-o9msT97p-py3.11/lib/python3.11/site-packages/connexion/decorators/uri_parsing.py", line 149, in wrapper
response = function(request)
^^^^^^^^^^^^^^^^^
File "/opt/.cache/virtualenvs/aura-engine-api-o9msT97p-py3.11/lib/python3.11/site-packages/connexion/decorators/parameter.py", line 120, in wrapper
return function(**kwargs)
^^^^^^^^^^^^^^^^^^
File "/srv/src/aura_engine_api/rest/controllers/internal_controller.py", line 34, in clock_info
service = current_app.config["SERVICE"]
- The logs for the docker container engine-api do not show any error, the error is only logged in the file mentioned above.
Environment
- local installation of the main branch from the aura repository
- the tests with this commit were done by using the
docker-compose.override.yml
file and building the engine-api container myself.