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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Madhushree17
Partner - Contributor
Partner - Contributor

Qlik Cli : Invoke RestMethod ERROR

Hi Community,
We have to send out NPrinting report every day. Currently Customer has Qlik Sense SaaS and we have deployed QSEoW and NPrinting on seperate servers.
We have created a cli script which does the following operations:
-Export app from SaaS to local folder
-Removing all apps from workspace in Qlik Sense hub
-Importing apps from the local folder to Qlik Sense hub
-Publish and replace old apps.


This script was working fine till last week and all the apps were getting properly migrated from SaaS to On prem and our NPrinting reports were also getting generated properly.
Our clients IT team did some changes to the Server after which admin rights were removed and we could no longer run cli scripts on windows task schedular or even manage (start or stop) Qlik Sense services.
While this was reverted back and we tested everything out to be working fine. Unfortunately, since yesterday evening we are facing a new issue which seems to be cli/api related issue.
While the exporting and importing of apps are working fine while replacing old app with new app
Error message : 
Invoke-RestMethod : Content-Length or Chunked Encoding cannot be set for an operation that does not write data.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\1.22.0\functions\core.ps1:66 char:23
+ ...            $result = Invoke-RestMethod @paramInvokeRestMethod @params
+                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-RestMethod], ProtocolViolationException
    + FullyQualifiedErrorId : System.Net.ProtocolViolationException,Microsoft.PowerShell.Commands.InvokeRestMethodCo 
   mmand

I am attaching all the necessary files for reference. Please look into this and how can we resolve as soon as possible as critical functionalities depend on this.

Thanks in advance.

2 Replies
Daniele_Purrone
Support
Support

Hi @Madhushree17 , please correct me if I'm wrong. This issue concerns the client-managed cli (and, in general, the client-managed Platform), is that right?

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
Daniele_Purrone
Support
Support

Thanks @Vishal_Gupta , I'm moving this to the forum for API-related issues then. 

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.