FNNDSC / ChRIS_ultron_backEnd

Backend for ChRIS
https://fnndsc.github.io/ChRIS_ultron_backEnd
MIT License
31 stars 100 forks source link

Bad error messages and no validation of pfcon configuration #569

Open jennydaman opened 2 months ago

jennydaman commented 2 months ago

If pfcon is misconfigured, e.g. an innetwork pfcon but the compute resource is not configured as innetwork=true, there are no safety rails. You get obscure errors like:

pfconclient.exceptions.PfconRequestException: {"message": "input_dirs: field is required"}

There should me a mechanism to validate pfcon's configuration and show helpful error messages with suggestions how to fix them.