ERROR: HTTP.ExceptionRequest.StatusError(400, "POST",

Description

Failing to upload and update coverage stats.

Repository

Private :frowning:

CI/CD

TravisCI

Uploader

- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'

Commit SHAs

Private

Codecov YAML

service_name: travis-pro

comment: true

ignore:
  - "src/archive/**/*."
  - "src/benchmarks/**/*."
  - "src/frontend/**/*."
  - "src/LPDMValidationTest.jl"
  - "src/run_server.jl"

Codecov Output

ERROR: HTTP.ExceptionRequest.StatusError(400, "POST", "/upload/v2?&service=travis-org&branch=master&commit=df78180a395699b4a99fa0fd65e2c52f51124976&pull_request=242&job=363911343&slug=ebalaban/SHERPA.jl&build=1260.1", HTTP.Messages.Response:
2246"""
2247HTTP/1.1 400 Bad Request
2248Server: nginx/1.13.12
2249Date: Wed, 22 Jul 2020 16:22:39 GMT
2250Content-Type: text/html; charset=UTF-8
2251Content-Length: 33572
2252Connection: keep-alive
2253X-Xss-Protection: 1; mode=block
2254X-Content-Type-Options: nosniff
2255Strict-Transport-Security: max-age=15724800; includeSubDomains
2256Vary: X-PJAX, Accept-Encoding
2257X-Ua-Compatible: IE=Edge,chrome=1
2258Cache-Control: no-cache
2259X-Frame-Options: deny
2260
2261
2262<!DOCTYPE html>
2263<html lang="en">
2264<head>
2265<meta charset="utf-8">
2266<meta http-equiv="X-UA-Compatible" content="IE=edge">
2267<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
2268<meta name="description" content="Code coverage done right. Highly integrated with GitHub, Bitbucket and GitLab.">
2269<meta name="author" content="@codecov">
2270<meta name="keywords" content="code, coverage, analysis, testing, development, qa, analyzer">
2271
2272<link rel="shortcut icon" href="https://codecov-cdn.storage.googleapis.com/4.5.3-0e8c545/media/images/favicon.png">
2273
2274<meta property="og:url" content="https://codecov.io">
2275<meta property="og:site_name" content="Codecov">
2276<meta property="og:title" content="Code coverage done right.">
2277<meta property="og:description" content="Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.">
2278<meta property="og:image" content="https://codecov-cdn.storage.googleapis.com/static/codecov-l
2279⋮
228033572-byte body
2281""")
2282Stacktrace:
2283 [1] #request#1(::Base.Iterators.Pairs{Symbol,Union{Nothing, Bool},Tuple{Symbol,Symbol},NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}}, ::typeof(HTTP.request), ::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::Vararg{Any,N} where N) at /home/travis/.julia/packages/HTTP/ZggHU/src/ExceptionRequest.jl:22
2284 [2] (::HTTP.var"#kw##request")(::NamedTuple{(:iofunction, :reached_redirect_limit),Tuple{Nothing,Bool}}, ::typeof(HTTP.request), ::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::HTTP.Messages.Request, ::String) at ./none:0
2285 [3] (::Base.var"#50#51#53"{ExponentialBackOff,HTTP.RetryRequest.var"#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}}}, ::Base.var"#50#52"{Base.var"#50#51#53"{ExponentialBackOff,HTTP.RetryRequest.var"#2#3"{Bool,HTTP.Messages.Request},typeof(HTTP.request)}}, ::Type, ::Vararg{Any,N} where N) at ./error.jl:253
2286 [4] #50#52 at ./none:0 [inlined]
2287 [5] #request#1 at /home/travis/.julia/packages/HTTP/ZggHU/src/RetryRequest.jl:44 [inlined]
2288 [6] #request at ./none:0 [inlined]
2289 [7] #request#1(::VersionNumber, ::String, ::Nothing, ::Nothing, ::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}}, ::typeof(HTTP.request), ::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/MessageRequest.jl:51
2290 [8] #request at ./none:0 [inlined]
2291 [9] #request#1(::Base.Iterators.Pairs{Symbol,Bool,Tuple{Symbol},NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}}, ::typeof(HTTP.request), ::Type{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/BasicAuthRequest.jl:28
2292 [10] (::HTTP.var"#kw##request")(::NamedTuple{(:reached_redirect_limit,),Tuple{Bool}}, ::typeof(HTTP.request), ::Type{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at ./none:0
2293 [11] #request#1(::Int64, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(HTTP.request), ::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/RedirectRequest.jl:24
2294 [12] request(::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/RedirectRequest.jl:21
2295 [13] #request#4(::Dict{String,String}, ::String, ::Nothing, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(HTTP.request), ::String, ::String, ::Array{Any,1}, ::String) at /home/travis/.julia/packages/HTTP/ZggHU/src/HTTP.jl:314
2296 [14] #request at ./none:0 [inlined]
2297 [15] #post#14 at /home/travis/.julia/packages/HTTP/ZggHU/src/HTTP.jl:405 [inlined]
2298 [16] #post at ./none:0 [inlined] (repeats 2 times)
2299 [17] #submit_generic#10(::Base.Iterators.Pairs{Symbol,String,NTuple{7,Symbol},NamedTuple{(:service, :branch, :commit, :pull_request, :job, :slug, :build),NTuple{7,String}}}, ::typeof(Coverage.Codecov.submit_generic), ::Array{CoverageTools.FileCoverage,1}) at /home/travis/.julia/packages/Coverage/HscVF/src/codecovio.jl:220
2300 [18] (::Coverage.Codecov.var"#kw##submit_generic")(::NamedTuple{(:service, :branch, :commit, :pull_request, :job, :slug, :build),NTuple{7,String}}, ::typeof(Coverage.Codecov.submit_generic), ::Array{CoverageTools.FileCoverage,1}) at ./none:0
2301 [19] #submit#2(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::typeof(Coverage.Codecov.submit), ::Array{CoverageTools.FileCoverage,1}) at /home/travis/.julia/packages/Coverage/HscVF/src/codecovio.jl:69
2302 [20] submit(::Array{CoverageTools.FileCoverage,1}) at /home/travis/.julia/packages/Coverage/HscVF/src/codecovio.jl:69
2303 [21] top-level scope at none:1
2304The command "julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder())'" exited with 1.
2305
2306
2307

Hi @logankilpatrick, would you be able to try the bash uploader and see if you’re getting the same issues?

This is what I got:

ERROR: HTTP.ExceptionRequest.StatusError(400, "POST", "/upload/v2?&commit=xxxxxxxxxx&branch=ck-todoList&token=-xxxx-xxxx-xxxxx-xxxxxx", HTTP.Messages.Response:
"""
HTTP/1.1 400 Bad Request
Server: nginx/1.13.12
Date: Wed, 22 Jul 2020 20:08:41 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 33098
Connection: keep-alive
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=15724800; includeSubDomains
Vary: X-PJAX, Accept-Encoding
X-Ua-Compatible: IE=Edge,chrome=1
Cache-Control: no-cache
X-Frame-Options: deny


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="Code coverage done right. Highly integrated with GitHub, Bitbucket and GitLab.">
<meta name="author" content="@codecov">
<meta name="keywords" content="code, coverage, analysis, testing, development, qa, analyzer">

<link rel="shortcut icon" href="https://codecov-cdn.storage.googleapis.com/4.5.3-0e8c545/media/images/favicon.png">

<meta property="og:url" content="https://codecov.io">
<meta property="og:site_name" content="Codecov">
<meta property="og:title" content="Code coverage done right.">
<meta property="og:description" content="Hosted coverage report highly integrated with GitHub, Bitbucket and GitLab. Awesome pull request comments to enhance your QA.">
<meta property="og:image" content="https://codecov-cdn.storage.googleapis.com/static/codecov-l
⋮
33098-byte body
""")
Stacktrace:
 [1] request(::Type{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}, ::HTTP.URIs.URI, ::Vararg{Any,N} where N; kw::Base.Iterators.Pairs{Symbol,Nothing,Tuple{Symbol},NamedTuple{(:iofunction,),Tuple{Nothing}}}) at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/ExceptionRequest.jl:22
 [2] (::Base.var"#58#60"{Base.var"#58#59#61"{ExponentialBackOff,HTTP.RetryRequest.var"#2#3"{Bool,HTTP.Messages.Request},typeof(HTTP.request)}})(::Type{T} where T, ::Vararg{Any,N} where N; kwargs::Base.Iterators.Pairs{Symbol,Nothing,Tuple{Symbol},NamedTuple{(:iofunction,),Tuple{Nothing}}}) at ./error.jl:288
 [3] #request#1 at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/RetryRequest.jl:44 [inlined]
 [4] request(::Type{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String; http_version::VersionNumber, target::String, parent::Nothing, iofunction::Nothing, kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/MessageRequest.jl:51
 [5] request at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/MessageRequest.jl:28 [inlined]
 [6] request(::Type{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String; kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/BasicAuthRequest.jl:28
 [7] request at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/BasicAuthRequest.jl:21 [inlined]
 [8] request(::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String; redirect_limit::Int64, forwardheaders::Bool, kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/RedirectRequest.jl:24
 [9] request(::Type{HTTP.RedirectRequest.RedirectLayer{HTTP.BasicAuthRequest.BasicAuthLayer{HTTP.MessageRequest.MessageLayer{HTTP.RetryRequest.RetryLayer{HTTP.ExceptionRequest.ExceptionLayer{HTTP.ConnectionRequest.ConnectionPoolLayer{HTTP.StreamRequest.StreamLayer{Union{}}}}}}}}}, ::String, ::HTTP.URIs.URI, ::Array{Pair{SubString{String},SubString{String}},1}, ::String) at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/RedirectRequest.jl:21
 [10] request(::String, ::String, ::Array{Any,1}, ::String; headers::Dict{String,String}, body::String, query::Nothing, kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/HTTP.jl:314
 [11] #post#14 at /Users/logankilpatrick/.julia/packages/HTTP/BOJmV/src/HTTP.jl:405 [inlined]
 [12] submit_generic(::Array{CoverageTools.FileCoverage,1}; kwargs::Base.Iterators.Pairs{Symbol,String,Tuple{Symbol,Symbol},NamedTuple{(:commit, :branch),Tuple{String,String}}}) at /Users/logankilpatrick/.julia/packages/Coverage/aaQ7q/src/codecovio.jl:220
 [13] submit_local(::Array{CoverageTools.FileCoverage,1}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at /Users/logankilpatrick/.julia/packages/Coverage/aaQ7q/src/codecovio.jl:164
 [14] submit_local at /Users/logankilpatrick/.julia/packages/Coverage/aaQ7q/src/codecovio.jl:164 [inlined] (repeats 2 times)
 [15] top-level scope at none:1

Any thoughts @tom? This one is really confusing to me.

Hi @logankilpatrick, I think there’s some misunderstanding here, can you try the bash uploader and see what the output is there?

1 Like

I just added

bash <(curl -s https://codecov.io/bash) -t token

to my travisCI config file. It looks like that is all I need to do?

Yes, that should be it

1 Like

I am getting this:

Travis CI detected.
2043 project root: .
2044 Yaml found at: .codecov.yml
2045==> Running gcov in . (disable via -X gcov)
2046==> Python coveragepy not found
2047==> Searching for coverage reports in:
2048 + .
2049–> No coverage report found.
2050 Please visit http://docs.codecov.io/docs/supported-languages

@logankilpatrick, would you be able to provide the entire Codecov output and/or a commit SHA?