Qlik Community

Qlik Sense Integration, Extensions, & APIs

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

Highlighted
Vashko
New Contributor II

Qlik-Cli - 403 Forbiden - Qlik Sense

Hello all,

As you may see in title, i have a issue with Qlik-Cli poweshell module for QRS.

I have no idea what to do, since I not know what is the problem.

Here is the command and output:

Start-QlikTask "testImport_usersynctask"
Invoke-RestMethod :

403 - Forbidden - Qlik Sense

<link rel="apple-touch-icon" sizes="167x167" href="data&colon;image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKcAAACnCAIAAAD7dNu7AAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9W
QtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvb
wACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszA
AgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANp
WAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCs
hk/ATrYHtctswH7uAQKLDljS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CkDnbck1DOaiZps3/5aewquoxcv3+sSKPvHbu6dMHvwcN9ILNfZOqe6B+pC3Kxs7K
9PptdjVqzzDJxh9iDoDlAcoV8nbMBbB7iTsqyVNnwUQu3OC6AtlfW0MU6W/DgQuHD7LaaAT5uvrHbaju/sbpQ5imRmVc3PD+JDnI9OqMq8C9o3k3QswKsfnTgt8IYRCvmpW1z3Guzpaqh5LcCemHCm/TXTSWF7Kp8dg2L3/2/
FBYUpryqpYq+vbqph769h95ICNPf93L4Kxi1Dbf1NjMiPdZBuxb6x2+ehSfS1PUVNSwYBrDcykhZZ7my7/J/5jbuFnAH8skYoB5UpaK5x+pvBj1CPvR5zgR9J6SzHf1Zmvj14wNixALywogcKOR/Us+ihhyYy7jr2WNAnUImr
4ApgWQfOlEY+1X8Pjy4vvdTztzbqS0lqD1ute00igRnEyRa0wi0nExC3n/y9+KHgQ8jAPsRt8iL2TVbU06j9jjA5FwCtLwEkoi6nqLGckhxnC
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], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

2 Replies
Employee
Employee

Re: Qlik-Cli - 403 Forbiden - Qlik Sense

Did you complete a correct connection?

 

https://github.com/ahaydon/Qlik-Cli/wiki/Establishing-a-connection

 

Vashko
New Contributor II

Re: Qlik-Cli - 403 Forbiden - Qlik Sense

PS C:\Windows\system32> Connect-Qlik -ComputerName "nameOfComputer" -UseDefaultCredentials -TrustAllCerts
Invoke-RestMethod : The underlying connection was closed: An unexpected error occurred on a send.
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], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

 

This is what I get.