Issue with API calls with proxy setup on the unattended robot VM

0
0

Hi,

i have an issue getting an API GET call from the process executing correctly as there is a proxy set up on the VM.
The following endpoint is called:
http://xxxxxxxxx/HBApi/api/bsdata/getEODStatus

The error:
status 404 / gateway timeout
Unknown host, unable to locate the server named spdc1vp-wwiis01 – the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists.

when the API call is made directly using an IP address:
http://<IPAddress>/HBApi/api/bsdata/getEODStatus
(as the client additionaly stated that the proxy shouldn’t be used as it’s intranet communication)
I get a timeout.

The client stated they can’t exclude the URL/IP from the proxy because of security policy.

Is there a way to exclude the call from using the proxy, by some VM or robot configuration changes, as then it should pass (??)

Tnx

  • Vuk
    • Vuk
    • 2 days ago
    • 1
    Hi Lac, Have you tried adding the following script step? using System.Net.Http; var handler = new SocketsHttpHandler { UseProxy = false }; using var client = new HttpClient(handler); Since there is no direct way to exclude the proxy, this should be a viable workaround. Best regards, Vuk
  • You must to post comments
0
0

Thanks for the info

using System.Net.Http; var handler = new SocketsHttpHandler { UseProxy = false }; using var client = new HttpClient(handler);

It worked, the calls are going through now

Nice catch!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.