Coverage upload fails with 408

Description

Coverage file upload fails with a 408 response. It’s also causing about 7 minutes to be added to our build times on CircleCI.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  157k    0     0  100  157k      0    446  0:06:00  0:06:00 --:--:--     0
curl: (22) The requested URL returned error: 408 
    X> Failed to upload
==> Uploading to Codecov
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  157k  100   279  100  157k      9   5346  0:00:31  0:00:30  0:00:01    57
Warning: Transient problem: HTTP error Will retry in 2 seconds. 5 retries 
Warning: left.
100  157k  100   107  100  157k    233   342k --:--:-- --:--:-- --:--:--  341k
    View reports at <html><head>
CircleCI received exit code 0

Hi @robmaceachern, just need some more details here

  • What repo is this for?
  • What commit did this fail on?
  • What CI/CD is this for?
  • Can you post the entire output?
  • Can you run with the -v flag?

Repo: a private repo.
Commit: It’s been happening for many different commits for at least 10 days.
CI: CircleCI
Output: I’ll DM it to you.
-v flag: I can try soon.

Unfortunately the verbose output is too long to send via DM (I DM’d you the non-verbose output). Looks like an upload request is timing out.

<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>408 Request Timeout</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: Request Timeout</h1>
<h2>Your client has taken too long to issue its request.</h2>
<h2></h2>
</body></html>

Hi Tom. Any advice on what we can do to resolve this 408 response issue?

@robmaceachern, I took a quick look, how large of a report are you uploading? You can use the -q argument to save down the file.

Based on the curl output it doesn’t look big (157k). If I understand the output, it looks like it’s 100% uploaded by the connection isn’t closing.

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  157k    0     0  100  157k      0   405k --:--:-- --:--:-- --:--:--  405k
100  157k    0     0  100  157k      0   113k  0:00:01  0:00:01 --:--:--  113k
100  157k    0     0  100  157k      0  67393  0:00:02  0:00:02 --:--:-- 67393
100  157k    0     0  100  157k      0  47496  0:00:03  0:00:03 --:--:-- 47496
100  157k    0     0  100  157k      0  36669  0:00:04  0:00:04 --:--:-- 36669
100  157k    0     0  100  157k      0  29862  0:00:05  0:00:05 --:--:--     0
100  157k    0     0  100  157k      0  25186  0:00:06  0:00:06 --:--:--     0
100  157k    0     0  100  157k      0  21777  0:00:07  0:00:07 --:--:--     0
100  157k    0     0  100  157k      0  19180  0:00:08  0:00:08 --:--:--     0

Seems to be the same problem as this user (Oct 6, 2020) https://github.com/codecov/codecov-bash/issues/154#issuecomment-704651086

@robmaceachern, would you be able to run the bash command with -U "-v" -A "-v"? I’d like to see the curl logs.