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

Windows 10 installation error: Exception calling "DownloadFile" with "2" argument(s) #235

Closed
yuxi-liu-wired opened this issue Dec 30, 2019 · 8 comments
Labels

Comments

@yuxi-liu-wired
Copy link

yuxi-liu-wired commented Dec 30, 2019

My setup: Julia v1.3.0, with

  [c52e3926] Atom v0.11.3
  [ad839575] Blink v0.12.0

I got error during Blink.AtomShell.install()

Exception calling "DownloadFile" with "2" argument(s): "An exception occurred during a WebClient request."
At line:1 char:82
+ ... pe]::Tls12; (new-object net.webclient).DownloadFile("https://github.c ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

ERROR: failed process: Process(`'C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -NoProfile -Command '[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object net.webclient).DownloadFile("https://github.com/electron/electron/releases/download/v4.0.4/electron-v4.0.4-win32-x64.zip", "electron-v4.0.4-win32-x64.zip")'`, ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error at .\process.jl:525 [inlined]
 [2] #run#565(::Bool, ::typeof(run), ::Cmd) at .\process.jl:440
 [3] run at .\process.jl:438 [inlined]
 [4] download at C:\Users\Yuxi\.julia\packages\Blink\AO8uN\src\AtomShell\install.jl:28 [inlined]
 [5] (::Blink.AtomShell.var"#1#4")() at C:\Users\Yuxi\.julia\packages\Blink\AO8uN\src\AtomShell\install.jl:50
 [6] cd(::Blink.AtomShell.var"#1#4", ::String) at .\file.jl:93
 [7] install() at C:\Users\Yuxi\.julia\packages\Blink\AO8uN\src\AtomShell\install.jl:27
 [8] top-level scope at REPL[47]:1
@yuxi-liu-wired yuxi-liu-wired changed the title Windows 10 installation erroException calling "DownloadFile" with "2" argument(s) Windows 10 installation error: Exception calling "DownloadFile" with "2" argument(s) Dec 30, 2019
@twavv
Copy link
Member

twavv commented Dec 30, 2019

@twavv twavv added the windows label Dec 30, 2019
@yuxi-liu-wired
Copy link
Author

It's probably the same error, but I don't know how to fix it. The link is for Java.

@twavv
Copy link
Member

twavv commented Jan 3, 2020

I'm really not sure what this error is.

Can you try uninstalling Blink, running

rm(joinpath(first(DEPOT_PATH), "Blink"), recursive=true) 

to delete any old Blink installations, and then try installing again?

Possible issues I can think of:

  • Your user on the system you're working on somehow doesn't have permission to write files to the location where Blink is installed
  • There's some firewall that is failing the download (I think this is less likely because it's an HTTPS request to GitHub)

@yuxi-liu-wired
Copy link
Author

I tried, and I got the a slightly different error.

Exception calling "DownloadFile" with "2" argument(s): 
"The remote server returned an error: (403) Forbidden."   
At line:1 char:82
+ ... pe]::Tls12; (new-object 
net.webclient).DownloadFile("http://junolab.s ...
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
    + CategoryInfo          : NotSpecified: (:) [], Meth  
   odInvocationException
    + FullyQualifiedErrorId : WebException
 
ERROR: failed process: Process(`'C:\Windows\System32\WindowsPowerShell\v1.0\powershell' -NoProfile -Command '[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (new-object net.webclient).DownloadFile("http://junolab.s3.amazonaws.com/blink/julia.png", "julia.png")'`, ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error at .\process.jl:525 [inlined]
 [2] #run#565(::Bool, ::typeof(run), ::Cmd) at .\process.jl:440
 [3] run at .\process.jl:438 [inlined]
 [4] download at C:\Users\Yuxi\.julia\packages\Blink\4FM8Y\src\AtomShell\install.jl:28 [inlined]
 [5] (::Blink.AtomShell.var"#1#2")() at C:\Users\Yuxi\.julia\packages\Blink\4FM8Y\src\AtomShell\install.jl:30 [6] cd(::Blink.AtomShell.var"#1#2", ::String) at .\file.jl:93
 [7] install() at C:\Users\Yuxi\.julia\packages\Blink\4FM8Y\src\AtomShell\install.jl:27
 [8] top-level scope at none:0

Opening the file location http://junolab.s3.amazonaws.com/blink/julia.png gives

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>43AC9F7B73C34D04</RequestId>
<HostId>
Zw+FQRy3BXzIo5LCVqM5GNnTSzMWvSGxcN9m0mjOGX6mhZOrnEQSOU13tHGZiuQwk9+a8DLm+xo=
</HostId>
</Error>

I tried using VPN, and not using VPN (I'm in mainland China), and both caused the same XML error.

@yuxi-liu-wired
Copy link
Author

@twavv
Copy link
Member

twavv commented Jan 7, 2020

The second issue should be resolved now (a file was deleted from an Amazon S3 storage bucket but it was put back).

Feel free to re-open if you have similar issues still.

@twavv twavv closed this as completed Jan 7, 2020
@yuxi-liu-wired
Copy link
Author

The installation works now.

@supersrh
Copy link

I kept gotting the same error until I switched the VPN mode to "global agent" @_@
My heart is broken

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

Successfully merging a pull request may close this issue.

3 participants