SSL Connection could not be established - HTTP request

Hi Everyone,

I am using HTTP request activity & passed the required values like the URL. The Api key is passed in the header.

I have passed the same data in Postman; it’s working and giving the status Code 200 OK But in UiPath getting this error. Could you please help in identifying this issue.


Thanks in advance

Hi @nithya,

  • Are you using Postman and UiPath in different environments?
  • Try setting the TLS protocol to 1.2 in the HTTP Request activity
  • Check if a proxy is configured in your network; if so, you may need to configure the same proxy in UiPath.

Thanks!

@nithya A 503 Service Unavailable usually means the server is reachable, but it is not able to process the request from UiPath at that moment. Since the same call works in Postman, the issue is most likely with how the request is being sent from UiPath.

→ For a GET request, usually you should not send a body

→ Compare the exact headers from Postman and UiPath, especially Authorization/API key, Content-Type, Accept, and User-Agent

→ If Postman is using query parameters, make sure they are passed the same way in UiPath

→ From the screenshot, one thing that stands out is that the request method is GET but the body type is set as Text / text/xml. If the API is a GET call, try removing the body completely and pass only the required headers/parameters.

Hi @Dhruba_Jyoti_Kalita & @Dhruba_Jyoti_Kalita

I have tried both the ways you mentioned; it’s still not working.

Have removed the body from http request activity.

@nithya If the request is working in Postman, could you try exporting it as cURL from Postman and importing that into the UiPath HTTP Request activity? That is usually the easiest way to make sure the UiPath request matches Postman exactly, especially for headers, authentication format, and other request details that Postman may be adding automatically.

@Dhruba_Jyoti_Kalita

I tried to import CURL & still getting the same error. Could you pls help.

It says “SSL connection could not be established. see internal error”


Attached error message for your reference.

Hi @nithya
Try this approach:

  1. Add this before API call
    System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12
  2. Try running on different network (hotspot)
  3. Test API in Postman/browser
  4. Check proxy/firewall settings
  5. Update WebAPI package

If Solution works for you please mark as Solution and let me know if you face any issue.

Thanks

Is there a reason why you Disable the SSL verification on the activity? Have you tried to set it to False, to keep it enabled (activity default)?

I tried to keep it false, and it did not work, so I tried to set it to true & checked.

Hi

Tried adding this query & still not working

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12

I am unable to switch to hotspot since I am working On vdi I dont have that access.

Hi @nithya,

You can try adding a proxy configuration:

  • Go to your Proxy Settings on VDI
  • Copy the URI and Port
  • Use it in your HTTP Request Proxy configuration (Proxy → Custom) like below:

New WebProxyConfiguration With {.Address = New Uri(“http://proxy.example.com:8080”)}

Thanks!

@nithya Thanks for sharing the error. This looks like SSL/TLS issue , not a request configuration issue.

Can you check below-

  1. If the API requires a client certificate
  2. If the TLS version/cipher is supported
  3. If there is any network/proxy restriction

Since Postman works but UiPath fails, it’s likely a TLS or certificate compatibility issue.

I checked for the proxy. it says no proxy server

Hi @nithya,

Using CMD, I’m getting the same issue on my VDI even though it is configured. Could you please check the Proxy Settings?

Thanks!

Hello,

I am unable to see proxy details. Attached screenshot for reference.

Hi @nithya,

Search Proxy Setting in Window Search box.

Thanks

I tried to search & clicked on Proxy no related to proxy window is opening.

  • From the impacted Studio machine, provide a screenshot from the PowerShell_ISE.exe while you are running the below script. It will tell you which is the default browser in the system. You need to have Edge/Chrome/Firefox as the default browser.

    Note: Firefox has a different configuration, where you can use completely different proxy details from your system. That should be checked separately.


$path = "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice"

$defaultBrowser = ""

try {

    $browserProgId = (Get-ItemProperty -Path $path).Progid 

    switch -regex ($browserProgId) {

        "MSEdge" { $defaultBrowser = "Microsoft Edge" }

        "Chrome" { $defaultBrowser = "Google Chrome" }

        "Opera"  { $defaultBrowser = "Opera" }

        "Firefox" { $defaultBrowser = "Mozilla Firefox" }

        "IE.HTTP" { $defaultBrowser = "Internet Explorer" }

        "Safari" { $defaultBrowser = "Safari" }

        default { $defaultBrowser = "Unknown"}

    }

}

catch {

    Write-Output "No default browser identified"

}

Write-Output "The Default Browser is: $defaultBrowser"
  • From the impacted Studio/Robot/Assistant machine provide a screenshot from the PowerShell_ISE.exe while you are running
[System.Net.WebRequest]::GetSystemWebProxy().GetProxy("https://maxifleet.komatsuforest.com:600")

Note:
If the AbsoluteUri value is different from the targeted URL, that means that is the proxy address that you need to specify in the HTTP Request.
If the AbsoluteUri value has the same value as the targeted URL (https://maxifleet.komatsuforest.com:600), that means in the HTTP Request you need to bypass that URL from your proxy server.

Hello :waving_hand:

Such scenarios are hard to diagnose without root cause analysis and Postman usually does some implicit configurations related to the machine it’s running on.

I strongly recommend using the activity’s Enable debugging info under Response options section. This will enrich the response you get in the Report text box and will also add it to the httpResponse.RawDebugginInfo property of the Output.

The information is structured for LLM consumption, therefore Claude or Autopilot can easily help debug what’s happening. Just make sure that you don’t expose secrets you don’t want to. Sensitive information sterilization exists but it’s not exhaustive.