-
Notifications
You must be signed in to change notification settings - Fork 18
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
Download error 404 #65
Comments
`VERBOSE: Detecting install status of package: u3etn09w_w10_x86 (Lenovo USB3.0 LAN Driver for Docks and Adapters - 10 [64])
` |
Looks like it's the same exact URL that's also been reported in #37. I don't think I can fix this on the side of LSUClient because that file is just not available, but it's not a fatal error and if you know (like in this case) that it is not a connectivity problem on your end you can ignore it. |
this makes no difference when running Get-LSUpdate in a normal PowerShell session, but some deployment/script-running solutions wrap the entire script in a big try-catch which triggered on any .NET exception from DownloadFile. Try-Catching the DownloadFile call separately and "downgrading" any exceptions to a PowerShell-native error prevents any unintended script terminations in such cases. I still recommend NOT wrapping LSUClient scripts in a global try-catch whenever it is possible to avoid it. also referencing previous issues #35, #36, #37 and #65
Version
1.5.0
Computer Model
82BG
Problem
$updates = Get-LSUpdate
Exception calling "DownloadFile" with "2" argument(s): "The remote server returned an error: (404) Not Found."
At C:\Program Files\WindowsPowerShell\Modules\LSUClient\1.5.0\private\Save-PackageFile.ps1:46 char:9
WARNING: The command or file '%PACKAGEPATH%\getw10ver7.exe' could not be found from 'C:\Users\mteo\AppData\Local\Temp\f43nujbv.ewv\1toamfcj.d2x' and was not run
Additional context
No response
The text was updated successfully, but these errors were encountered: