validatedid / eidas-bridge

This repo contains an implementation of an eIDAS Bridge Library in Python.
Apache License 2.0
11 stars 5 forks source link

Loading QEC fails with internal server error #11

Open tomasbbb opened 4 years ago

tomasbbb commented 4 years ago

Linux Ubuntu 16.04

  1. Starting eIDAS bridge as a cotainer. Note: Werkzeug python library manually set to version 0.16.1 in requirements.demo.txt, otherwise docker does not start.
  2. Go to http://localhost:5002/
  3. Try load-qec "message": "Internal Server Error", console output: [2020-05-27 12:05:27,859] ERROR in app: Exception on /eidas/load-qec [POST] Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.7/dist-packages/flask/app.py", line 1936, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python3.7/dist-packages/flask_restplus/api.py", line 325, in wrapper resp = resource(*args, kwargs) File "/usr/local/lib/python3.7/dist-packages/flask/views.py", line 89, in view return self.dispatch_request(*args, *kwargs) File "/usr/local/lib/python3.7/dist-packages/flask_restplus/resource.py", line 44, in dispatch_request resp = meth(args, kwargs) File "/code/demo/eidas_bridge_api.py", line 50, in post request.json['password'] File "/code/eidas_bridge/eidas_bridge.py", line 44, in eidas_load_qec dbmanager = DBManager() File "/code/eidas_bridge/utils/dbmanager.py", line 25, in init with open(self._file_path, 'w', newline='') as csvfile: FileNotFoundError: [Errno 2] No such file or directory: './demo/data/storage/eidas_data.csv'