FAQ

Errors about environment variables

An environment variable is a variable that is defined in the terminal and used by the executable afterwards. In the context of Deepomatic CLI there are three main environment variables used:

  • DEEPOMATIC_APP_ID and DEEPOMATIC_API_KEY are used to interact with trained models.

  • DEEPOMATIC_STUDIO_TOKEN is used to send images or JSON to Deepomatic Studio.

First you need to retrieve those values from the Deepomatic Studio interface or your account administrator, then you need to pass them along to the terminal. See the code sample below.

Linux/MacOS
Windows
Linux/MacOS
export DEEPOMATIC_APP_ID="xxxxxxxxxxxx"
export DEEPOMATIC_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
export DEEPOMATIC_STUDIO_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Windows
$Env:DEEPOMATIC_APP_ID="xxxxxxxxxxxx"
$Env:DEEPOMATIC_API_KEY="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
$Env:DEEPOMATIC_STUDIO_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Error 11001: getaddrinfo failed

You get this error because Deepomatic CLI cannot reach the Deepomatic endpoints. Most of the times this is the consequence of a Proxy that has not been setup.

Setup a proxy

The easiest way to do it is to simply pass the proxy parameters as an environment variable. You will need:

  • proxyserver: the proxy server address.

  • proxyport: the proxy server port.

  • user: your proxy user login identifier.

  • password: your proxy authentication password.

Linux/MacOS
Windows
Linux/MacOS
export https_proxy="http://user:password@proxyserver:proxyport"
Windows
$Env:https_proxy="http://user:password@proxyserver:proxyport"

The Deepomatic CLI uses only secured https connection. As such, you just need to setup the https_proxy environment variable.

If you're running inferences on your local infrastructure you might want to take a look at how to Configure Docker to use a proxy server.