Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue exporting large apps (again) #129

Closed
mountaindude opened this issue Sep 10, 2020 · 4 comments
Closed

Issue exporting large apps (again) #129

mountaindude opened this issue Sep 10, 2020 · 4 comments

Comments

@mountaindude
Copy link

mountaindude commented Sep 10, 2020

Seems the issue from 2019 (#83) which prevented >2GB apps from being exported has resurfaced.
Using most recent version (1.19.2), the app export fails for large apps.
Seems the only call in functions/core.ps1 is Invoke-RestMethod, which fails (always?) for large files. The previous solution was to call Invoke-WebRequest instead.

Or is there another way these days to export large apps?

@levi-turner
Copy link

I don't have cycles to dig into a fix, but this is the trace on my end:

PS C:\> Export-QlikApp -id b7913ff2-2294-411c-a998-41f472e54359
Stream was too long.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\1.19.2\functions\core.ps1:62 char:19
+         $result = Invoke-RestMethod @paramInvokeRestMethod @params
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-RestMethod], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

@mountaindude
Copy link
Author

Mmm I am pretty swamped too, still wanted to report it. And good that you could confirm it, Levi.
Things might ease up in a few weeks. Maybe.

@levi-turner
Copy link

Is that the same exception that you're seeing? My environment involves two servers sitting beside themselves so just want to make sure for @ahaydon (or maybe @Nillth ) who are gurus of the Qlik-Cli code have the right direction. Or myself if I get cycles in a bit to look in more depth.

@mountaindude
Copy link
Author

Looks like the same error, yes.

PS E:\temp> Export-QlikApp -id 002e077a-4701-455b-b1b5-b940b9583b40
Invoke-RestMethod : Stream was too long.
At C:\Program Files\WindowsPowerShell\Modules\Qlik-Cli\functions\core.ps1:62 char:19
+         $result = Invoke-RestMethod @paramInvokeRestMethod @params
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-RestMethod], IOException
    + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

PS E:\temp>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants