Skip to content

Invalid URL error from HTTP #58

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

Open
Keno opened this issue Nov 6, 2017 · 4 comments
Open

Invalid URL error from HTTP #58

Keno opened this issue Nov 6, 2017 · 4 comments
Assignees

Comments

@Keno
Copy link
Member

Keno commented Nov 6, 2017

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
Copy link
Contributor

Do you know how to repo this?

@Keno
Copy link
Member Author

Keno commented Jan 3, 2018

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

@KristofferC
Copy link
Contributor

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

@Keno
Copy link
Member Author

Keno commented Jan 9, 2018

Yes, I think that's the right solution.

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

No branches or pull requests

2 participants