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?
Error:
Your credentials could not be authenticated: “Credentials are missing.”. You will not be permitted access until your credentials can be verified.
Yes
While encoding, we have to enter username:API Token and after it, we will get one encoded value.
In Postman, I have defined proxy settings and using header value for authentication. It works well.
In Uipath, I have defined in Uipath.config as defined Redirecting Robots through a Proxy Server (uipath.com) and used same header value but no success.
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?
To start with the doc that you are referring to is to setup a proxy connection between different UiPath services.
There is some value on the http request which is creating the problem for you I believe.
Can you give the details what you are trying and how you are trying to pass
If it is working on postman then try checking the hidden headers on it and also try encoding the url that you are passing just to ensure it is not failing because of that.
Ideally that should not be the case as you are getting 407 which happens only when creds for proxy are wrong
Also some one tried using a vb code can check that
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