Curl error 5: Could not resolve proxy: <proxy-server-address>

We created a Unity Addressable asset and kept it in the S3 bucket, which is behind a Aws Cloudfront. We are having difficulties accessing the data (downloading the data) from the Pc Standalone build if the Application is behind a Proxy Server.
Anyone facing the same problem ? Any lead on this matter is highly appreciated.

Unity Version : 2021.3
Platform: PC Standalone (Windows)

In our development environment we can access the data without any issue, for both Editor and Runtime. Development Environment is not behind any Proxy Server. The Build is used in a different Environment where Proxy server is used for network communication. The Error occurs only in that environment.

As Error Log we only get the below message.
Curl error 5: Could not resolve proxy : <proxy-server-address>

Unity doesn’t support automatic proxy configuration. It should be able to take proxy address and login&password from system, but it can’t run automatic configuration scripts.

1 Like

@Aurimas-Cernius
Thanks for your response.
My undersanding in setting up proxy is quite low.
Can you elaborate your answer a little bit.

“Unity doesn’t support automatic proxy configuration”

  • How does it behave when using automatic settings? Meaning how would we understand if client end environment is using automatic settings?
  • Can we assume Curl error 5: Could not resolve proxy will be thrown if using automatic proxy configuration?

“but it can’t run automatic configuration scripts.”

  • Do you mean if client environment uses “Use Setup Script” option, unity will not be able to resolve the proxy? Also, if client is using this, what approach should we take to handle the scenario? If there is any resources regarding this can you share it with us.

No, it could also mean manual configuration with incorrect proxy URL. That’s what the error means - Unity obtained URL to proxy from Windows Settings, but failed to connect to it.