You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to export the apps using following code
Get-PfxCertificate -FilePath C:\Certificates\CLI\client.pfx |
Connect-Qlik -ComputerName siiplqlikdev -Username siiplqlikdev\qlikservice -TrustAllCerts
$myserver = "siiplqlikdev"
$folder = "c:\Qlik Backup"
Connect-Qlik $myserver ## check https://github.com/ahaydon/Qlik-Cli for details
foreach($qvf in $(get-qlikapp)) {
if ($qvf.published -and $qvf.stream.name) { # Is it published?
$streamfolder = $qvf.stream.name
If(!(test-path "$folder$streamfolder")) # Create a folder if it does not exists
{
New-Item -ItemType Directory -Force -Path "$folder$streamfolder"
}
} else {
$streamfolder = ""
}
Export-QlikApp -id $qvf.id -filename "$($folder)$($streamfolder)$($qvf.name).qvf" #dumps the qvf
}
but i am getting following error at the export
Invoke-WebRequest : Content-Length or Chunked Encoding cannot be set for an operation that does not write data.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:60 char:23
$result = Invoke-WebRequest @paramInvokeRestMethod @params -UseBasic ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], ProtocolViolationException
FullyQualifiedErrorId : System.Net.ProtocolViolationException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Thanks in advance
The text was updated successfully, but these errors were encountered:
This looks like the culprit, though that commit is only in the beta release so it should be working in the v1.22.0 release.
The next release is long overdue anyway so I'll push a fix and a new release.
Hi @ahaydon,
i am trying to export the apps using following code
Get-PfxCertificate -FilePath C:\Certificates\CLI\client.pfx |$qvf in $ (get-qlikapp)) {$qvf.id -filename "$ ($folder)$ ($streamfolder)$ ($qvf.name).qvf" #dumps the qvf
Connect-Qlik -ComputerName siiplqlikdev -Username siiplqlikdev\qlikservice -TrustAllCerts
$myserver = "siiplqlikdev"
$folder = "c:\Qlik Backup"
Connect-Qlik $myserver ## check https://github.com/ahaydon/Qlik-Cli for details
foreach(
if ($qvf.published -and $qvf.stream.name) { # Is it published?
$streamfolder = $qvf.stream.name
If(!(test-path "$folder$streamfolder")) # Create a folder if it does not exists
{
New-Item -ItemType Directory -Force -Path "$folder$streamfolder"
}
} else {
$streamfolder = ""
}
Export-QlikApp -id
}
but i am getting following error at the export
Invoke-WebRequest : Content-Length or Chunked Encoding cannot be set for an operation that does not write data.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:60 char:23
$result = Invoke-WebRequest @paramInvokeRestMethod @params -UseBasic ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [Invoke-WebRequest], ProtocolViolationException
FullyQualifiedErrorId : System.Net.ProtocolViolationException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Thanks in advance
The text was updated successfully, but these errors were encountered: