Skip to main content
When implementing Cryptolens into your software, you may get different of errors depending if you call the API directly or through one of the client libraries. This section covers the most common errors, why they occur and how to troubleshoot them.

Basics

API errors

The majority of errors (99%) are caused by a wrong product id, access token or RSA Public key. In some cases, it can also be because an active subscription is missing. Our client libraries might not always show the real error message and instead display a generic error. To find out the real error message from the Web API, you can call the method through curl or in the browser. For example, to check the access token, you can call curl as shown below:
You can also check this with the browser. The call above would translate to:
The most common errors and their cause is summarized below:

SDK errors

SDKs and the code implementation can also contribute to errors. A common error is when IsOnRightMachine is included in the key verification code but the license is not set up to track machines. If your code relies on this check in such case, the code will fail. For example, let’s look at the Python code to verify licenses:
If the license uses the default value of the maximum number of machines, the code above will fail with the error message that the license does not work. To fix this, you can either remove Helpers.IsOnRightMachine call or set maximum number of machines to a value greater than 0.

SDK errors during implementation

We recommend to review the troubleshooting section of the Key verification tutorial to see common errors and how to fix them.

Other tools

Another useful tool to determine the cause of an error is the Log Explorer. It tracks many of the customer-facing methods (such as Activate, Deactivate, and data object related methods).