Client Errors
When calling GetMetricsToken
or GetSignToken
you may encounter one of the following errors. These errors are returned in the form of a string and should be properly consumed by the server-side application.
In cases where an exception occurred, you will not be charged for the request. Exceptions should still be properly handled to ensure a good user experience.
- Name
MISSING_PUBLIC_KEY
- Description
The javascript client is unable to find the client key embedded in the page.
- Name
INVALID_PUBLIC_KEY
- Description
The public key provided is invalid or has been revoked.
- Name
SESSION_EXPIRED
- Description
The session has expired, the user will need to refresh the page to continue.
- Name
INVALID_DATA
- Description
An un-handled exception occured while attempting to generate a token, treat with high risk.
- Name
FAILED_TO_SIGN
- Description
An un-handled exception occured while attempting to generate a token, treat with high risk.
- Name
OUTDATED_BROWSER
- Description
Synthient uses a modern browser detection system. If the user is using an outdated browser they will be unable to generate a token, this forces the user to use a modern browser for ensuring the best security.