JuliaComputing / FemtoCleaner.jl

The code behind femtocleaner
https://github.com/apps/femtocleaner
Other
64 stars 9 forks source link

Invalid URL error from HTTP #58

Open Keno opened 7 years ago

Keno commented 7 years ago
ERROR: HTTP.URLParsingError: encountered invalid url character for parsing state = es_req_schema:
pkg.julialang.org
---^

Stacktrace:
 [1] http_parser_parse_url(::Array{UInt8,1}, ::Int64, ::Int64, ::Bool) at /opt/pkgs/v0.6/HTTP/src/urlparser.jl:183
 [2] (::Base.#kw##parse)(::Array{Any,1}, ::Base.#parse, ::Type{HTTP.URIs.URI}, ::String) at ./<missing>:0
 [3] HTTP.URIs.URI(::String) at /opt/pkgs/v0.6/HTTP/src/uri.jl:82
 [4] extract_nullable(::Dict{String,Any}, ::String, ::Type{HTTP.URIs.URI}) at /opt/pkgs/v0.6/GitHub/src/utils/GitHubType.jl:57
 [5] json2github(::Type{GitHub.Repo}, ::Dict{String,Any}) at /opt/pkgs/v0.6/GitHub/src/utils/GitHubType.jl:83
 [6] GitHub.Repo(::Dict{String,Any}) at /opt/pkgs/v0.6/GitHub/src/repositories/repositories.jl:36
 [7] collect_to!(::Array{GitHub.Repo,1}, ::Base.Generator{Array{Any,1},Type{GitHub.Repo}}, ::Int64, ::Int64) at ./array.jl:474
 [8] _collect(::Array{Any,1}, ::Base.Generator{Array{Any,1},Type{GitHub.Repo}}, ::Base.EltypeUnknown, ::Base.HasShape) at ./array.jl:455
 [9] map(::Type{T} where T, ::Array{Any,1}) at ./abstractarray.jl:1865
 [10] mapfoldl_impl(::GitHub.##202#203, ::Base.#vcat, ::Array{GitHub.Repo,1}, ::Array{HTTP.Response,1}, ::Int64) at ./reduce.jl:43
 [11] #repos#201(::Dict{Any,Any}, ::Array{Any,1}, ::Function, ::GitHub.GitHubWebAPI, ::GitHub.Installation) at /opt/pkgs/v0.6/GitHub/src/apps/installations.jl:28
 [12] (::GitHub.#kw##repos)(::Array{Any,1}, ::GitHub.#repos, ::GitHub.GitHubWebAPI, ::GitHub.Installation) at ./<missing>:0
 [13] update_existing_repos(::GitHub.GitHubWebAPI, ::Base.LibGit2.Signature, ::Int64, ::MbedTLS.PKContext) at /opt/pkgs/v0.6/FemtoCleaner/src/autodeployment.jl:51
 [14] (::FemtoCleaner.##60#62{MbedTLS.PKContext,Int64})() at ./task.jl:335
KristofferC commented 6 years ago

Do you know how to repo this?

Keno commented 6 years ago

Yeah, the problem was that The url fields in GitHub types are freeform strings not valid URLs necessarily.

KristofferC commented 6 years ago

So this is really a GitHub.jl issue? Should the url field be changed to ::String?

Keno commented 6 years ago

Yes, I think that's the right solution.