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 handled by the server.

  • Name
    MISSING_PUBLIC_KEY
    Description

    The client-side library failed to find your public key in the webpage.

  • Name
    INVALID_PUBLIC_KEY
    Description

    The public key 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

    Treat with high risk.

  • Name
    FAILED_TO_SIGN
    Description

    Treat with high risk.

  • Name
    OUTDATED_BROWSER
    Description

    Synthient forces the use of modern browsers for security reasons, if the user uses a browser that is not supported they will receive this error. (Chrome < 70 for example)


API Errors

When querying /lookup or /visits here are some errors you may encounter.

  • Name
    TOKEN_NOT_FOUND
    Description

    The token provided was not issued by Synthient.

  • Name
    Failed integrity check.
    Description

    The visitor is using an outdated version of the Synthient library. Treat with high risk.