Closed jonathds closed 9 years ago
Hi,
could you retry again? The timeout could have been caused by a server, which was not responding, or a very slow connection. The timeout is set to 15 seconds.
I just tried and everything worked as expected.
HI,
Thanks for your response, I ran it again and received the same error.
Please try the -Verbose flag for more informations:
gvm install groovy -Verbose
Than try to open the link, which is shown in the Verbose output, in your browser. If this doesn't work too, the issue is probably related to your internet connection (eg. no possible route to the download source).
If it works in your browser, I have to guese. Maybe a policy issue, some other powershell module which changes something in your environment or something else. Could be really hard to debug.
Thank you! So I used the -Verbose flag and pasted the url in my browser. I was able to download the file. I imagine that the issue is that the timeout is set too short. The browser took a good 30 seconds at best to start the download. May have something to with our firewalls and connection. Is there a way to increase the time out limit?
The timeout is defined around the addressed line in your error message.You could increase it from 15000 ms to 60000 ms.
I have to think about a good solution. Im afraid that increasing the timeout would seems like an unresponding command for other user which do not expect the timeout to take 60 sec+ (if the issue would really be a unresponsive server). Maybe I could make the timeout configurable.
A start would be to handle the exception, so a solution could be propagated better.
Great! Let me me start with that and go from there. If you do find it best to make the time out configurable, please let me know. Thanks again for all your help!
So I found the Download-File function in the Utils script and changed it to 120000, that absolutely fixed the problem.
Hello I am getting this error when I send this command "gvm install groovy" - I have installed PsGet, posh-gvm, PsUrl, in my powershell ".ps1" directory:
Exception calling "GetResponse" with "0" argument(s): "The operation has timed out" At C:\Users\jdsmith\Documents\WindowsPowerShell\Modules\posh-gvm\Utils.ps1:432 char:5