0

After couple of execution, invoke code activity is encountering exception.

Dim fr As System.Net.HttpWebRequest Dim targetURI As New Uri(strURL)

fr = DirectCast(HttpWebRequest.Create(targetURI), System.Net.HttpWebRequest)

Dim webProxy As IWebProxy = New WebProxy(strIpAddressAndPort) webProxy.Credentials = New NetworkCredential(strProxyUsername, strProxyPassword) fr.Proxy = webProxy fr.Timeout = 90000 fr.KeepAlive = True

fr.Headers.Add(“Authorization”, jwtOutput)

fr.Headers.Add(“zapiAccessKey”, “MWExM2QyZTYtYzBlMi0zODI5LWIzMjUtZWNjZDJjMDBkODQ5IDYyMjhlODliYzg4ZjEwMDA2ODMyNWRhNCBVU0VSX0RFRkFVTFRf”)

Using res As HttpWebResponse = DirectCast(fr.GetResponse(), System.Net.HttpWebResponse)

webRes = res Dim html As String = New StreamReader(res.GetResponseStream()).ReadToEnd() strHtml = html fr.GetResponse.Close() res.Dispose() res.Close() End Using

Error: The operation has timed out at GetResponse.

It is happening after some couple of requests.

Any help?

Using Uipath>InvokeCode activity

GetResponse should return response but failed due to time out issue.

Pushkar
  • 1
  • 1

0 Answers0