We were using JIRA integration with UiPath using HTTP request. Recently, our JIRA got migrated to cloud and problem is integrating with JIRA cloud. We have to use proxy for authentication. We have tried to set proxy in our HTTP requests but 407 code is coming as a result. Any help?
Starting with v2021.4.4, the Robot can work with proxy configurations that use Authentication via Windows Credentials. To enable this functionality, add the UIPATH_PROXY_USE_DEFAULT_CREDENTIALS system environment variable on the machine.
In this part, UIPATH_PROXY_USE_DEFAULT_CREDENTIALS is the key but nothing is mentioned about value. How will it accept credentails?
I’ve never tried invoke code before. I entered code provided above but it is throwing many compile errors.
Error ERROR Validation Error No compiled code to run
error BC30456: ‘GetEncoding’ is not a member of ‘String’. At line 13
error BC30311: Value of type ‘HttpWebResponse’ cannot be converted to ‘String’. At line 17 Sequences/MainApplication/Others/UpdateJira.xaml
Dim webProxy As System.Net.IWebProxy = New System.Net.WebProxy(strIpAddressAndPort)
webProxy.Credentials = New System.Net.NetworkCredential(strProxyUsername, strProxyPassword)
fr.Proxy = webProxy
fr.Credentials = New System.Net.NetworkCredential(strSimpleAuthUsername, strSimpleAuthPassword)
Dim username As String = strSimpleAuthUsername
Dim password As String = strSimpleAuthPassword
Dim encoded As String = System.Convert.ToBase64String(System.Text.Encoding.GetEncoding(“ISO-8859-1”).GetBytes(username + “:” + password))
fr.Headers.Add(“Authorization”, "Basic " + encoded)
Dim res As System.Net.HttpWebResponse = DirectCast(fr.GetResponse(), System.Net.HttpWebResponse)
webRes = res
Dim html As String = New StreamReader(res.GetResponseStream()).ReadToEnd()
strHtml = html