# 400 "too many uploads to this commit"

**URL:** <https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266>\
**Category:** Support\
**Tags:** github\
**Created:** [October 8, 2021, 3:24pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266 "2021-10-08T15:24:40Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![briantist](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/briantist/32/1606_2.png) [@briantist](https://community.codecov.com/u/briantist)\
**Post date:** [October 8, 2021, 3:24pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/1 "2021-10-08T15:24:40Z")

</div>

### Description

My CI is failing is a 400 error being reported by the uploader, “too many uploads to this commit”. I’ve never seen this before and nothing special is going on in the repository. This is on the daily scheduled CI run on the `main` branch. I’m using the new/binary uploader, latest (1.0.5 on this run).

### Commit SHAs

`61ba6ea7e69e11a1616287d5996a025da8482fd3`

### Repository

> **[GitHub - ansible-collections/community.hashi\_vault: Ansible collection for managing and working with...](https://github.com/ansible-collections/community.hashi_vault/)**
>
> Ansible collection for managing and working with HashiCorp Vault.

### CI/CD or Build URL

[https://github.com/ansible-collections/community.hashi\_vault/runs/3840091847?check\_suite\_focus=true#step:5:129](https://github.com/ansible-collections/community.hashi_vault/runs/3840091847?check_suite_focus=true#step:5:129)

### Uploader

binary uploader 1.0.5

### Codecov Output

> **Full output**
>
> ```auto
> _____ _
> / ____ | | |
> | | _____| |______  _______
> | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
> | |___| (_) | (_| |__/ (_| (_) \ V /
> \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
>   
> Codecov report uploader 0.1.5
> [2021-10-08T15:10:58.442Z] ['info'] => Project root located at: /home/runner/work/community.hashi_vault/community.hashi_vault
> [2021-10-08T15:10:58.444Z] ['info'] -> No token specified or token is empty
> [2021-10-08T15:10:58.448Z] ['info'] Searching for coverage files...
> [2021-10-08T15:10:58.482Z] ['info'] => Found 20 possible coverage files:
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.5.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.6.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.8.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-2.6.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-2.7.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.7.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.5.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.6.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.8.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-2.6.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-2.7.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.9.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.7.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.5.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.6.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.8.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-2.6.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-2.7.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.9.xml
> /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.7.xml
> [2021-10-08T15:10:58.482Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.5.xml...
> [2021-10-08T15:10:58.487Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.6.xml...
> [2021-10-08T15:10:58.488Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.8.xml...
> [2021-10-08T15:10:58.489Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-2.6.xml...
> [2021-10-08T15:10:58.490Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-2.7.xml...
> [2021-10-08T15:10:58.491Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.9=data/coverage=units=units=docker-default=python-3.7.xml...
> [2021-10-08T15:10:58.492Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.5.xml...
> [2021-10-08T15:10:58.493Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.6.xml...
> [2021-10-08T15:10:58.499Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.8.xml...
> [2021-10-08T15:10:58.502Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-2.6.xml...
> [2021-10-08T15:10:58.503Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-2.7.xml...
> [2021-10-08T15:10:58.503Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.9.xml...
> [2021-10-08T15:10:58.504Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.10=data/coverage=units=units=docker-default=python-3.7.xml...
> [2021-10-08T15:10:58.504Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.5.xml...
> [2021-10-08T15:10:58.505Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.6.xml...
> [2021-10-08T15:10:58.505Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.8.xml...
> [2021-10-08T15:10:58.506Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-2.6.xml...
> [2021-10-08T15:10:58.506Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-2.7.xml...
> [2021-10-08T15:10:58.507Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.9.xml...
> [2021-10-08T15:10:58.508Z] ['info'] Processing /home/runner/work/community.hashi_vault/community.hashi_vault/cov-units-pre2.12/coverage=units=ansible_stable-2.11=data/coverage=units=units=docker-default=python-3.7.xml...
> [2021-10-08T15:10:58.525Z] ['info'] Detected GitHub Actions as the CI provider.
> [2021-10-08T15:10:58.526Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.1.5&token= ******* &branch=main&build=1320652759&build_url=https%3A%2F%2Fgithub.com%2Fansible-collections%2Fcommunity.hashi_vault%2Factions%2Fruns%2F1320652759&commit=61ba6ea7e69e11a1616287d5996a025da8482fd3&job=CI&pr=&service=github-actions&slug=ansible-collections%2Fcommunity.hashi_vault&name=&tag=&flags=env_docker-default%2Cunits&parent=
> [2021-10-08T15:10:58.837Z] ['error'] Error POSTing to https://codecov.io: 400 [ErrorDetail(string='Too many uploads to this commit.', code='invalid')]
> [2021-10-08T15:10:58.838Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: Bad Request
> 
> ```

### Expected Results

Success

### Actual Results

400 error from codecov servers

### Additional Information

Re-running CI did not help. There is no additional or unusual CI activity happening on this commit.

---

<div class="post-metadata">

**Author:** ![briantist](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/briantist/32/1606_2.png) [@briantist](https://community.codecov.com/u/briantist)\
**Post date:** [October 11, 2021, 6:19pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/2 "2021-10-11T18:19:40Z")

</div>

@tom are you able to help with this? My CI is still failing because of the issue and I have no insight into why.

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [October 14, 2021, 1:47pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/3 "2021-10-14T13:47:33Z")

</div>

Hi @briantist, the main issue is that you are, in fact, uploading too many builds for the same commit. This isn’t strictly documented as it rarely occurs.

Has your daily scheduled build run on the same commit for the past few days? Do you know about how many uploads you do per CI run?

---

<div class="post-metadata">

**Author:** ![briantist](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/briantist/32/1606_2.png) [@briantist](https://community.codecov.com/u/briantist)\
**Post date:** [October 14, 2021, 3:11pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/4 "2021-10-14T15:11:39Z")

</div>

There are a lot of uploads per run, because of the matrix of all the testing scenarios, plus using the flags feature, so that results in lots more reports. [I don’t have a specific number but you could take a look at the codecov job in CI on a successful run](https://github.com/ansible-collections/community.hashi_vault/runs/3895859104?check_suite_focus=true).

It had definitely run on the same commit for several days; possibly longer. But that’s not new; when there are no new commits in the repo, the daily will keep running against the same commit. That’s never caused a problem before, even on commits that had more active development, and remained the HEAD of `main` for a much longer time. So this really came as a surprise.

As the repo gets more and more stable, I expect that will happen more over time…

- What is the upper limit on number of uploads per commit?
- Why have a strict maximum number of uploads vs. some kind of rate limiting (max uploads per Y time period)?
- Please document this!

---

<div class="post-metadata">

**Author:** ![briantist](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/briantist/32/1606_2.png) [@briantist](https://community.codecov.com/u/briantist)\
**Post date:** [October 17, 2021, 4:05pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/5 "2021-10-17T16:05:06Z")

</div>

This is happening again: [CI · ansible-collections/community.hashi\_vault@a7c2a19 · GitHub](https://github.com/ansible-collections/community.hashi_vault/runs/3919139519?check_suite_focus=true#step:6:956)

This commit is only 5 days old. Something has changed on the codecov side… how can I expect to work around this??

Reiterating these points:

- What is the upper limit on number of uploads per commit?
- Why have a strict maximum number of uploads vs. some kind of rate limiting (max uploads per Y time period)?
- Please document this!

---

<div class="post-metadata">

**Author:** ![briantist](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/briantist/32/1606_2.png) [@briantist](https://community.codecov.com/u/briantist)\
**Post date:** [November 3, 2021, 1:38am UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/6 "2021-11-03T01:38:19Z")

</div>

I’m still having this issue, would really appreciate some help!  
Latest time this happened: [CI · ansible-collections/community.hashi\_vault@8d5d5e2 · GitHub](https://github.com/ansible-collections/community.hashi_vault/runs/4087507989?check_suite_focus=true#step:5:129)

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [November 4, 2021, 4:17pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/7 "2021-11-04T16:17:40Z")

</div>

@briantist the commit above has [165 uploads](https://codecov.io/gh/ansible-collections/community.hashi_vault/commit/8d5d5e2ffc1bf2b8e7e080d19fac76b279db1e0c/build) while the previous one has 161 uploads. The upper limit is within 100-200 but is also dependent on upload size, and it’s in place due to our ability to process that number of uploads for a commit.

Unfortunately, we just aren’t able to support that many uploads per commit. I recommend not uploading coverage for your daily CI runs if your code hasn’t changed, because there shouldn’t be a change in coverage either.

---

<div class="post-metadata">

**Author:** ![briantist](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/briantist/32/1606_2.png) [@briantist](https://community.codecov.com/u/briantist)\
**Post date:** [November 8, 2021, 6:39pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/8 "2021-11-08T18:39:01Z")

</div>

[I’ve done two things on my end to address this](https://github.com/ansible-collections/community.hashi_vault/pull/186):

- reduced the number of flags (which reduces the number of uploads)
- stopped doing coverage reports on daily runs, as suggested

Thanks @tom

---

<div class="post-metadata">

**Author:** ![dabbeg](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/dabbeg/32/2188_2.png) [@dabbeg](https://community.codecov.com/u/dabbeg)\
**Post date:** [January 12, 2022, 2:25pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/9 "2022-01-12T14:25:58Z")

</div>

Hi @tom, I am having the same issue.

We are uploading 200+ reports per commit when we have a full rebuild of our monorepo.

Is there any way to increase this limit for us? Does the paid version support this increase?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [February 2, 2022, 6:20pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/10 "2022-02-02T18:20:59Z")

</div>

@dabbeg sorry for the delay here, can you open a new request for this? We don’t have any way to up the limit, free or paid. We might have to see if there’s a way to get under 200 reports.

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [May 24, 2022, 8:04pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/11 "2022-05-24T20:04:25Z")

</div>

Sorry to “crash” into the topic.

We started seeing this recently, and I’m in the process of adding more flags to the builds, so even more uploads.

However, I believe we are nowhere near 100 uploads, [Codecov](https://app.codecov.io/gh/saltstack/salt/compare/61660) but I can’t be sure since that doesn’t load.

This is not welcoming to big projects, let alone, mono repo projects.

What are you planning to do to support these kinds of projects?

---

<div class="post-metadata">

**Author:** ![tom](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/tom/32/8_2.png) [@tom](https://community.codecov.com/u/tom)\
**Post date:** [June 4, 2022, 10:30pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/12 "2022-06-04T22:30:43Z")

</div>

@s0undt3ch, do you mind opening a new topic on this? I’d also like to get some commits where you are seeing this

---

<div class="post-metadata">

**Author:** ![s0undt3ch](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/s0undt3ch/32/271_2.png) [@s0undt3ch](https://community.codecov.com/u/s0undt3ch)\
**Post date:** [September 24, 2023, 5:01pm UTC](https://community.codecov.com/t/400-too-many-uploads-to-this-commit/3266/13 "2023-09-24T17:01:16Z")

</div>

Two years later, we’re in kind of the same spot.

```auto
[2023-09-23T06:55:30.453Z] ['info'] Detected GitHub Actions as the CI provider.
[2023-09-23T06:55:30.664Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=uploader-0.6.2&token= ******* &branch=hotfix%2Fcodecov&build=6275610333&build_url=https%3A%2F%2Fgithub.com%2Fsaltstack%2Fsalt%2Factions%2Fruns%2F6275610333&commit=4ae2351f0b8cb9498bccc7db37ed46364b6fdebc&job=CI&pr=65216&service=github-actions&slug=saltstack%2Fsalt&name=windows-2022.ci-test-onedir.integration&tag=&flags=salt%2Cwindows-2022%2Czeromq%2Cintegration&parent=55c55bc4b3ebc815f65f38f24bf31b1ba3bf22da
[2023-09-23T06:55:31.019Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 400 - [ErrorDetail(string='Too many uploads to this commit.', code='invalid')]

```

 ![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/f/fc7a4d3dc40036f9089209773b9e77b1093ac690.png)

What is the limit?  
Can we get a limit bump?
