Debugging

Configuration errors #

Configuration errors are problems with the options object used to initalize a UI Element. If there is an error with the configuration, the UI Element will not be rendered on the screen but an error message will be rendered in its place.

Example configuration error #

The following screenshots show an Availability Viewer UI Element with an invalid config.start_time option:

Generic errors #

In some scenarios, the options can all be “valid” but the UI Element is still unable to function properly. In these instances, the UI Element will render on the page with an error message. This message is purposefully more generic, because end-users may see this error. The messages in the console, however, still aim to be as descriptive as possible.

Common causes of errors #

Example generic error #

The following screenshots show an Availability Viewer element with a malformed availability query option:

Search