Out of Memory Exception when attempting to include attachments in Backup Zip via PowerShell

Issue #13 resolved
Mike Miller created an issue

When this line is true in the PS script:

  $attachments = $true

then we get this error:

Downloading: jira_export_20170529_050059.zip to JIRA-backup.zip
Invoke-WebRequest : Exception of type 'System.OutOfMemoryException' was thrown.
backupjira.ps1:50 char:5
+     Invoke-WebRequest -Method Get -Headers @{"Accept"="*/*"} -WebSession $sessio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Invoke-WebRequest], OutOfMemoryException
    + FullyQualifiedErrorId : System.OutOfMemoryException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Has anyone else run into this? Has anyone else had any success including attachments in their JIRA Cloud backup automation?

Comments (2)

  1. Log in to comment