Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to run simple QRS API calls (get apps, streams, etc) from a powershell script. I get this strange error asking for apple icons.
404 - The requested resource cannot be found. - Qlik Sense404 - The requested resource cannot be found. - Qlik Sense <link rel="apple-touch-icon" sizes="167x167" href="data:image/png;base64, and then a chunk of hex which I am assuming is the encoded image it is expecting.
This is the powershell script
#ignore certificate/SSL errors
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
#use TLS1.2
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")
$url = "https://localhost/win/qrs/about?xrfkey=12345678qwertyui"
$resp = Invoke-RestMethod -Uri $url -Method Get -Headers $hdrs -UseDefaultCredentials
echo $resp
Any ideas what the problem might be?
And there is a virtual proxy with prefix "win"?
If yes - the virtual proxy is linked to a proxy?
And there is a virtual proxy with prefix "win"?
If yes - the virtual proxy is linked to a proxy?
Hi Stefan
We have four virtual proxies that use the 'win' prefix behind a load balancer. They are all linked to separate proxies.
Turned out to be two issues
1) we did not have the 'win' prefix on the scheduler's local virtual proxy service.
2) the NTLM credentials embedded in the connection were out of date.