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
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 #
- An invalid token (if it’s a String it will pass the config-validation, but could still fail when connecting to the API if the token itself is not valid).
permissionon a UI Element token
Example generic error #
The following screenshots show an Availability Viewer element with a malformed
availability query option: