Open JaeAeich opened 9 months ago
TLDR
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.10/site-packages/connexion/decorators/decorator.py", line 68, in wrapper
response = function(request)
File "/usr/local/lib/python3.10/site-packages/connexion/decorators/uri_parsing.py", line 149, in wrapper
response = function(request)
File "/usr/local/lib/python3.10/site-packages/connexion/decorators/validation.py", line 196, in wrapper
response = function(request)
File "/usr/local/lib/python3.10/site-packages/connexion/decorators/parameter.py", line 120, in wrapper
return function(**kwargs)
File "/usr/local/lib/python3.10/site-packages/foca/utils/logging.py", line 61, in _wrapper
response = fn(*args, **kwargs)
File "/app/pro_wes/ga4gh/wes/controllers.py", line 64, in RunWorkflow
response = workflow_run.run_workflow(
File "/app/pro_wes/ga4gh/wes/workflow_runs.py", line 81, in run_workflow
document.run_log.request = self._validate_run_request(
File "/app/pro_wes/ga4gh/wes/workflow_runs.py", line 468, in _validate_run_request
model_instance = RunRequest(**dict_atomic)
File "pydantic/main.py", line 339, in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 1102, in pydantic.main.validate_model
File "/app/pro_wes/ga4gh/wes/models.py", line 195, in workflow_type_and_version_supported
raise NoSuitableEngine(
pro_wes.exceptions.NoSuitableEngine: 400 Bad Request: No suitable workflow engine known for workflow type 'CWL' and version 'v1.0'; supported workflow engines: {'additionalProp1': {'workflow_type_version': ['string']}, 'additionalProp2': {'workflow_type_version': ['string']}, 'additionalProp3': {'workflow_type_version': ['string']}} [foca.errors.exceptions]
Hi @JaeAeich: Obviously the workflow engines configured for the deployment you are working on are wrong:
Supported workflow engines: {'additionalProp1': {'workflow_type_version': ['string']}, 'additionalProp2': {'workflow_type_version': ['string']}, 'additionalProp3': {'workflow_type_version': ['string']}}
This looks like JSON schema / OpenAPI dummy data.
Actually, proWES is really not done - the controllers just aren't really implemented yet. So this may actually be working "as expected" :unamused:
Describe the bug
POST
/runs throws a400
error.Request:
Response:
Traceback:
I don't think this is due to the latest commits, I have checked it for commits from
25f0e59 fix: create storage dir on startup (#83
to as back asfe8271a build: upgrade FOCA (#64)
, which is weird because it did use to work sometimes back, maybe afoca
error.To Reproduce Steps to reproduce the behavior: I ran POST request from swagger on 8090.