Skip to main content Link Search Menu Expand Document (external link)

Exceptions

If exceptions occur during server start-up, for example when loading the configuration files or endpoint configurations, the server will fail to start. This page describes the most common exceptions that can occur on server startup, and how to fix them.

This list describes possible exceptions in the SCS core functionality. If you have configured extensions these may raise additional exceptions to the ones described below. Note that exceptions that are raised during request handling, will trigger a 500 response code as described here, and the exception will be logged in the application log.

ClassDescription
ValueErrorThese occur in case values are wrongly configured, such as Environment Variables. Please see the error message for a more thorough description.
YAMLErrorOne of the YAML configuration files (e.g. scs-configuration.yaml, *scs-env.yaml files or scs-users.yaml) contain syntax errors. Check the error traceback to determine what file failed to load.
TemplateErrorOne of the endpoint templates failed to render during caching. This can be because of problems with the template syntax or because the required context variables for the template are not available. To troubleshoot, disable templates.cache to temporarily suppress the issue and validate your configuration to test each endpoint seperately.
EnvFileFormatExceptionOne or more *scs-env.yaml files do not conform to the scs-env.yaml schema.

Note that you should be able to prevent most, if not all exceptions, by validating your configuration prior to deployment.