Working behind a proxy#
By default, the SimAI client attempts to get your proxy configuration, if any, from your system.
SimAI client configuration#
You can manually set a proxy when creating the SimAIClient instance:
import ansys.simai.core
simai = ansys.simai.core.SimAIClient(https_proxy="http://company_proxy:3128")
Alternatively, you can store the proxy information in your configuration file.
Note
Setting this parameter overrides the default configuration retrieved from your system.
Troubleshooting#
If you get an error of the type ProxyError([...], SSLCertVerificationError([...]
,
it is likely that your proxy setup looks like |computer|<-https->|proxy|<-https->|internet|
.
Because your web browser uses a special
proxy auto-configuration file, the
proxy is not trusted by your computer.
There are multiple ways to fix this issue:
Try
tls_ca_bundle="system"
(requirespython>=3.10
, see Client configuration).Extract the required CA certificate:
Extract the certificates used by your company-configured browser on
https://simai.ansys.com
.Set
tls_ca_bundle
(or theREQUESTS_CA_BUNDLE
environment variable):[default] organization = "company" tls_ca_bundle = "/home/username/Documents/my_company_proxy_ca_bundle.pem"
As a temporary last resort, one can use
tls_ca_bundle="unsecure-none"
(contact your IT department).