Skip to main content

Integration, Extension & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

QlikWorld 2023, a live, in-person thrill ride. Save $300 before February 6: REGISTER NOW!
Showing results for 
Search instead for 
Did you mean: 
Contributor III
Contributor III

Qlik-cli bad request


I'm trying to configure Qlik-cli in our server .

I connect successfully to it but then when executing commands like start-qliktask I'm getting bad request (400) error.

Other api calls like getAbout or so are working correctly.

I followed the steps to install the certificates from GitHub page and qlik help.


Any clues?


Labels (4)
12 Replies


This run fine on my end:

$license = Get-Content -Path C:\shared-content\licenses\qlik-license.json | ConvertFrom-Json
Set-QlikLicense -serial $license.sense.serial -control $license.sense.control -lef $license.sense.lef -name $ -organization $license.sense.organization



Again, this is an unlicensed system. If a license is applied then a different technique would be required.

Contributor II
Contributor II

hi Levi_Turner:

thank you so much.  we will try that once we get things working.

at the moment we can't even connect (running win_shell  Connect-Qlik {{ inventory_hostname }} -TrustAllCerts -UseDefaultCredentials directly from ansible).  we are sure that the port 4242 on the remote host is opened.  the Connect-Qlik sometime works and sometime doesn't when running on local visual code.  but it doesn't work at all when running from Jenkins with errors:

"stderr": "Invoke-RestMethod : Unable to connect to the remote server\r\nAt C:\\Program Files\\WindowsPowerShell\\Modules\\Qlik-Cli\\functions\\core.ps1:30 char:17\r\n+ ...   $result = Invoke-RestMethod -Method $method -Uri $path @params -Ses ...\r\n+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc \r\n   eption\r\n    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand",
    "stderr_lines": [
        "Invoke-RestMethod : Unable to connect to the remote server",
        "At C:\\Program Files\\WindowsPowerShell\\Modules\\Qlik-Cli\\functions\\core.ps1:30 char:17",
        "+ ...   $result = Invoke-RestMethod -Method $method -Uri $path @params -Ses ...",
        "+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~",
        "    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc ",
        "   eption",
        "    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand"
    "stdout": "",
    "stdout_lines": []

thank you.

Contributor III
Contributor III

Hi - Did you find a solution to this? I'm having the same issue. Thanks!