HTTP 404 error on adding package by dependency DiffRules

Hello!

I get this error messages when I try to install Gadfly or Flux. DiffRules.jl availability on GitHub seems not to be a problem and adding different packages e.g Wavelets.jl did work. ]update did’t help.

I use Julia Pro 1.0.3 with JuliaTeam and a corporate proxy.

How can I solve this?

(v1.0) pkg> add Gadfly
 Resolving package versions...
ERROR: Error when installing package DiffRules:
HTTP.ExceptionRequest.StatusError(404, HTTP.Messages.Response:
"""
HTTP/1.1 404 Not Found
Server: openresty/1.13.6.2
Date: Thu, 06 Jun 2019 15:19:55 GMT
Content-Type: text/html
Content-Length: 175
Connection: keep-alive

""")
Stacktrace:
 [1] #request#1 at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\HTTP\src\Excepti
onRequest.jl:22 [inlined]
 [2] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getfield(Credentia
lsHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.ExceptionRequest.Exceptio
nLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}, ::HTTP.URIs.URI
, ::HTTP.Messages.Request, ::Nothing) at .\none:0
 [3] (::getfield(Base, Symbol("###44#45#46")){ExponentialBackOff,getfield(HTTP.RetryRequest, Symbol(
"##2#3")){Bool,HTTP.Messages.Request},typeof(HTTP.request)})(::Base.Iterators.Pairs{Symbol,getfield(
CredentialsHandler, Symbol("##1#3")){String},Tuple{Symbol},NamedTuple{(:iofunction,),Tuple{getfield(
CredentialsHandler, Symbol("##1#3")){String}}}}, ::Function, ::Type, ::Vararg{Any,N} where N) at .\e
rror.jl:203
 [4] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getfield(Credentia
lsHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.RetryRequest.RetryLayer{H
TTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.St
reamLayer}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::Nothing) at .\none:0
 [5] #request#1(::VersionNumber, ::String, ::Nothing, ::Function, ::Base.Iterators.Pairs{Union{},Uni
on{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Type{HTTP.MessageRequest.MessageLayer{HTTP.Retry
Request.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{H
TTP.StreamRequest.StreamLayer}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubStr
ing{String}},1}, ::Nothing) at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\HTTP
\src\MessageRequest.jl:47
 [6] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getfield(Credentia
lsHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.MessageRequest.MessageLay
er{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.Connecti
onPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{S
tring},SubString{String}},1}, ::Nothing) at .\none:0
 [7] #request#1(::Int64, ::Bool, ::Base.Iterators.Pairs{Symbol,getfield(CredentialsHandler, Symbol("
##1#3")){String},Tuple{Symbol},NamedTuple{(:iofunction,),Tuple{getfield(CredentialsHandler, Symbol("
##1#3")){String}}}}, ::Function, ::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.MessageRequest.Messa
geLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.Con
nectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubSt
ring{String},SubString{String}},1}, ::Nothing) at C:\Users\julia\AppData\Local\Julia-1.0.3\share\jul
ia\stdlib\v1.0\HTTP\src\RedirectRequest.jl:24
 [8] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction,),Tuple{getfield(Credentia
lsHandler, Symbol("##1#3")){String}}}, ::typeof(HTTP.request), ::Type{HTTP.RedirectRequest.RedirectL
ayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLa
yer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer}}}}}}, ::String, ::HTT
P.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::Nothing) at .\none:0
 [9] #request#3(::Base.Iterators.Pairs{Symbol,getfield(CredentialsHandler, Symbol("##1#3")){String},
Tuple{Symbol},NamedTuple{(:iofunction,),Tuple{getfield(CredentialsHandler, Symbol("##1#3")){String}}
}}, ::Function, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::N
othing) at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\HTTP\src\HTTP.jl:302
 [10] download(::String, ::String) at .\none:0
 [11] (::getfield(BinaryProvider.JuliaTeam, Symbol("##1#2")){getfield(BinaryProvider, Symbol("##51#7
6"))})(::String, ::String) at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\Binar
yProvider\src\JuliaTeam.jl:18
 [12] #download#97(::Bool, ::Function, ::String, ::String) at C:\Users\julia\AppData\Local\Julia-1.0
.3\share\julia\stdlib\v1.0\BinaryProvider\src\PlatformEngines.jl:494
 [13] download at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\BinaryProvider\sr
c\PlatformEngines.jl:493 [inlined]
 [14] install_archive(::Array{String,1}, ::Base.SHA1, ::Base.UUID, ::String) at C:\Users\julia\AppDa
ta\Local\Julia-1.0.3\share\julia\stdlib\v1.0\Pkg\src\Operations.jl:515
 [15] macro expansion at C:\Users\julia\AppData\Local\Julia-1.0.3\share\julia\stdlib\v1.0\Pkg\src\Op
erations.jl:657 [inlined]
 [16] (::getfield(Pkg.Operations, Symbol("##26#29")){Symbol,Pkg.Types.Context,Dict{Base.UUID,Base.SH
A1},Dict{Base.UUID,Array{String,1}}})() at .\task.jl:259

Do you by chance have a corporate firewall or VPN between you and the internet? If so, that’s likely the source of your issue.

There is a corporate firewall. But how does this affect DiffRules.jl but not Wavelets.jl?

Have you tried adding DiffRules manually?

Yes, it shows the same error as I posted before.
I guess add just adds missing dependencies the same way.

I’m pretty sure add pulls a source tarball from Github, so maybe you can ask your network admins if they can help you troubleshoot this with that information in mind.

BTW a local clone via Git works. So I guess it’s not an networking issue.

PS C:\Users\a97812\GitHub> git clone https://github.com/JuliaDiff/DiffRules.jl.git
Cloning into 'DiffRules.jl'...
remote: Enumerating objects: 376, done.
remote: Total 376 (delta 0), reused 0 (delta 0), pack-reused 376
Receiving objects: 100% (376/376), 65.68 KiB | 1.82 MiB/s, done.
Resolving deltas: 100% (212/212), done.

So I tried to install that way in julia - with an other error

(v1.0) pkg> add https://github.com/JuliaDiff/DiffRules.jl.git
   Cloning git-repo `https://github.com/JuliaDiff/DiffRules.jl.git`
ERROR: failed to clone from https://github.com/JuliaDiff/DiffRules.jl.git, error: GitError(Code:ERRO
R, Class:OS, failed to set credentials: Falscher Parameter.
)

(Falscher Parameter means wrong parameter)

So I tried to install from local file clone above - and I suceeded

(v1.0) pkg> add C:\\Users\\a97812\\GitHub\\DiffRules.jl
   Cloning git-repo `C:\\Users\\a97812\\GitHub\\DiffRules.jl`
  Updating git-repo `C:\\Users\\a97812\\GitHub\\DiffRules.jl`
 Resolving package versions...
  Updating `C:\Users\a97812\.juliapro\JuliaPro_v1.0.3.1\environments\v1.0\Project.toml`
  [b552c78f] + DiffRules v0.0.7+ #master (C:\\Users\\a97812\\GitHub\\DiffRules.jl)
  Updating `C:\Users\a97812\.juliapro\JuliaPro_v1.0.3.1\environments\v1.0\Manifest.toml`
  [b552c78f] + DiffRules v0.0.7+ #master (C:\\Users\\a97812\\GitHub\\DiffRules.jl)

(v1.0) pkg> add Flux
 Resolving package versions...
  Updating `C:\Users\a97812\.juliapro\JuliaPro_v1.0.3.1\environments\v1.0\Project.toml`
  [587475ba] + Flux v0.6.9
  Updating `C:\Users\a97812\.juliapro\JuliaPro_v1.0.3.1\environments\v1.0\Manifest.toml`
  [1520ce14] + AbstractTrees v0.2.1
  [79e6a3ab] + Adapt v0.4.1
  [bbf7d656] + CommonSubexpressions v0.2.0
  [163ba53b] + DiffResults v0.0.3
  [587475ba] + Flux v0.6.9
  [f6369f11] + ForwardDiff v0.10.1
  [872c559c] + NNlib v0.4.3

(v1.0) pkg> add Gadfly
 Resolving package versions...
  Updating `C:\Users\a97812\.juliapro\JuliaPro_v1.0.3.1\environments\v1.0\Project.toml`
  [c91e804a] + Gadfly v1.0.0
  Updating `C:\Users\a97812\.juliapro\JuliaPro_v1.0.3.1\environments\v1.0\Manifest.toml`
  [49dc2e85] + Calculus v0.4.1
  [a81c6b42] + Compose v0.7.1
  [7ad07ef1] + CoupledFields v0.1.0
  [01453d9d] + DiffEqDiffTools v0.7.1
  [c91e804a] + Gadfly v1.0.0
  [a1b4810d] + Hexagons v0.2.0
  [5ab0869b] + KernelDensity v0.5.1
  [d3d80556] + LineSearches v7.0.1
  [4345ca2d] + Loess v0.5.0
  [d41bc354] + NLSolversBase v7.1.1
  [429524aa] + Optim v0.17.2
  [85a6dd25] + PositiveFactorizations v0.2.1