Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
DavidFosterVF
Creator
Creator

QRS API error - Qlik Sense404 - The requested resource cannot be found - apple-touch-icon

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&colon;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?

Labels (1)
  • API

1 Solution

Accepted Solutions
stefanstoichev123

And there is a virtual proxy with prefix "win"?

If yes - the virtual proxy is linked to a proxy?

stefanstoichev123_0-1646670029435.png

 

View solution in original post

3 Replies
stefanstoichev123

And there is a virtual proxy with prefix "win"?

If yes - the virtual proxy is linked to a proxy?

stefanstoichev123_0-1646670029435.png

 

DavidFosterVF
Creator
Creator
Author

Hi Stefan

We have four virtual proxies that use the 'win' prefix behind a load balancer. They are all linked to separate proxies.

 

DavidFosterVF
Creator
Creator
Author

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.