SSL Certificate Error When Connecting to Maestro in Python

SSL Certificate Error When Connecting to Maestro in Python

Why did the bot fail to connect to Maestro?

The bot failed because, in Python, the call to Maestro did not ignore the self-signed SSL certificate from the proxy or server.
This issue is common in corporate environments that use internal certificates or traffic inspection proxies.


How can I fix the SSL certificate issue?

You need to adjust the SSL verification before running the bot again.
You can either disable SSL verification or install the Certificate Authority (CA) certificate.

Example of disabling verification in the code:

  1. from botcity.maestro import BotMaestroSDK
  2. maestro = BotMaestroSDK.from_sys_args() maestro.VERIFY_SSL_CERT = False # Ignore SSL certificate validation

Important note about VERIFY_SSL_CERT

For the flag maestro.VERIFY_SSL_CERT = False to work properly, the botcity-maestro-sdk dependency must be version 0.7.0 or higher (PyPI).


Quick fix

In your bot code, define the flag to ignore SSL certificates:

  1. maestro.VERIFY_SSL_CERT = False

This allows the bot to reconnect successfully, even in environments using self-signed certificates.

    • Related Articles

    • Resolving SSL certificate verification issues when running commands using 'pip'

      Access blocks are quite common in corporate environments. As a result, you may encounter problems when trying to use BotCity tools and Python resources on a machine in your company's environment. One problem that may occur in these scenarios is the ...
    • How to fix Python environment preparation failed error

      A very common error when executing automations through the Runner is Python Environment Preparation Failed. As the name suggests, the Runner fails when trying to prepare the Python environment for the robot's execution. This error occurs in different ...
    • Problems with blocking environments

      If you are trying to use BotCity's tools in a corporate environment, you may encounter some issues related to environment locks. Here are some of the most common issues when using the BotCity Studio SDK in blocking environments: Installation through ...
    • What Features Are Available on a Free BotCity Maestro Account ?

      Description A common question from new users of BotCity Maestro is what features are included in a free (community) account. These questions often come through the support chat on the sign-up screen, and usually include: How many bots can I create? ...
    • Error Running Edge Browser via Orchestrator: How to Fix It?

      Issue During the execution of robots using the Microsoft Edge browser through the orchestrator, a specific issue was identified: the browser did not start correctly, whereas when running locally, the flow executed normally. The error presented was: ...