You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have recently gotten errors on a perfectly normal Codecov.submit_local call, and I can't figure out why. I would appreciate it if you could help me figure it out. It seems like the coverage gets everything right when I call the following:
global PROJECT_ROOT =@__DIR__ENV["CODECOV_TOKEN"]=...using Coverage
coverage =process_folder()
But when it comes to Codecov.submit_local(coverage), it throws the following error:
julia> Codecov.submit_local(coverage)
[ Info: Submitting data to Codecov...
ERROR: HTTP.ExceptionRequest.StatusError(406, "POST", "/upload/v2?&branch=curvedemo4&token=TOKENHERE&commit=b7fc2061cff4f8630dfd26b93a43806671fbf0c6", HTTP.Messages.Response:"""HTTP/1.1 406 Not Acceptableserver: envoydate: Thu, 11 Feb 2021 22:40:15 GMTcontent-type: text/plain; charset=utf-8allow: GET, POST, HEAD, OPTIONSx-frame-options: SAMEORIGINcontent-length: 101vary: Originx-envoy-upstream-service-time: 5Via: 1.1 googleAlt-Svc: clear{'detail': ErrorDetail(string='Could not satisfy the request Accept header.', code='not_acceptable')}""")
Stacktrace:
[1] #request#1(::Base.Iterators.Pairs{Symbol,Union{Nothing, Bool},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}}, ::Function, ::Type{ExceptionLayer{ConnectionPoolLayer{StreamLayer{Union{}}}}}, ::URIs.URI, ::Vararg{Any,N} where N) at C:\Users\berko\.julia\packages\HTTP\TVRTz\src\ExceptionRequest.jl:22
[2] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}, ::typeof(HTTP.request), ::Type{ExceptionLayer{ConnectionPoolLayer{StreamLayer{Union{}}}}}, ::URIs.URI, ::HTTP.Messages.Request, ::String)
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,Union{Nothing, Bool},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}}, ::Function, ::Type, ::Vararg{Any,N}where N) at .\error.jl:203
[4] #request#1(::VersionNumber, ::String, ::Nothing, ::Nothing, ::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}}, ::Function, ::Type{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{StreamLayer{Union{}}}}}}}, ::String, ::URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at .\none:0 (repeats 2 times)
[5] (::getfield(HTTP, Symbol("#kw##request")))(::NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}, ::typeof(HTTP.request), ::Type{BasicAuthLayer{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{StreamLayer{Union{}}}}}}}}, ::String, ::URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at .\none:0
[6] #request#1(::Int64, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Type{RedirectLayer{BasicAuthLayer{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{StreamLayer{Union{}}}}}}}}}, ::String, ::URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at C:\Users\berko\.julia\packages\HTTP\TVRTz\src\RedirectRequest.jl:24
[7] request(::Type{RedirectLayer{BasicAuthLayer{MessageLayer{RetryLayer{ExceptionLayer{ConnectionPoolLayer{StreamLayer{Union{}}}}}}}}}, ::String, ::URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at C:\Users\berko\.julia\packages\HTTP\TVRTz\src\RedirectRequest.jl:21
[8] #request#5(::Dict{String,String}, ::String, ::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::String, ::String, ::Array{Any,1}, ::String) at C:\Users\berko\.julia\packages\HTTP\TVRTz\src\HTTP.jl:315
[9] #post at .\none:0 [inlined]
[10] submit_generic(::Array{CoverageTools.FileCoverage,1}, ::Dict{Symbol,Any}) at C:\Users\berko\.julia\packages\Coverage\3V3Eo\src\codecovio.jl:228
[11] #submit_local#4(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Array{CoverageTools.FileCoverage,1}, ::String) at C:\Users\berko\.julia\packages\Coverage\3V3Eo\src\codecovio.jl:181
[12] submit_local at C:\Users\berko\.julia\packages\Coverage\3V3Eo\src\codecovio.jl:181 [inlined] (repeats 2 times)
[13] top-level scope at none:0
Please help! I am using latest Coverage (1.2.0) and HTTP v0.9.3, on Julia 1.5.3.
The text was updated successfully, but these errors were encountered:
We added the Accept header recently (#293), but it looks like their backend server might now break when you pass that option (and always gives text/json now, regardless of what is requested / Allowed)
Hello folks,
I have recently gotten errors on a perfectly normal
Codecov.submit_local
call, and I can't figure out why. I would appreciate it if you could help me figure it out. It seems like the coverage gets everything right when I call the following:But when it comes to
Codecov.submit_local(coverage)
, it throws the following error:Please help! I am using latest Coverage (1.2.0) and HTTP v0.9.3, on Julia 1.5.3.
The text was updated successfully, but these errors were encountered: