LatestUpdate icon indicating copy to clipboard operation
LatestUpdate copied to clipboard

Get-UpdateCatalogDownloadInfo sometimes returns null, which later causes an exception

Open mlongwell opened this issue 5 years ago • 0 comments

Occasionally, LatestUpdate will sometimes throw an exception.

During Get-LatestServicingStackUpdate.ps1, line 97 throws an exception, stating that $downloadInfo is null. https://github.com/aaronparker/LatestUpdate/blob/50e8c79c760593247ef36574b8ca759a5b779e01/LatestUpdate/Public/Get-LatestServicingStackUpdate.ps1#L97 This variable is supposed to be set on line 94 while calling Get-UpdateCatalogDownloadInfo, but it looks like this function occasionally returns null: https://github.com/aaronparker/LatestUpdate/blob/50e8c79c760593247ef36574b8ca759a5b779e01/LatestUpdate/Public/Get-LatestServicingStackUpdate.ps1#L94

mlongwell avatar Oct 19 '20 18:10 mlongwell