# Error "There was an error processing coverage reports."

**URL:** <https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255>\
**Category:** Support\
**Tags:** python, github\
**Created:** [October 6, 2021, 12:54am UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255 "2021-10-06T00:54:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjcaley](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mjcaley/32/2131_2.png) [@mjcaley](https://community.codecov.com/u/mjcaley)\
**Post date:** [October 6, 2021, 12:54am UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255/1 "2021-10-06T00:54:43Z")

</div>

_Please search for similar issues before creating a ticket._  
All fields below are required.

### Description

“There was an error processing coverage reports.” when using CodeCov GitHub action.

### Commit SHAs

149baede5cf893ed8489545b0312f34d7b536041

### Repository

> **[GitHub - mjcaley/aiospamc: Python asyncio-based library that implements the...](https://github.com/mjcaley/aiospamc)**
>
> Python asyncio-based library that implements the SPAMC/SPAMD client protocol used by SpamAssassin.

### CI/CD or Build URL

[https://github.com/mjcaley/aiospamc/runs/3809382232?check\_suite\_focus=true](https://github.com/mjcaley/aiospamc/runs/3809382232?check_suite_focus=true)

### Uploader

GItHub Action - codecov/codecov-action@v2

### Codecov Output

with:  
directory: output  
files: coverage.xml  
flags: unittests  
verbose: true  
env:  
pythonLocation: /opt/hostedtoolcache/Python/3.10.0/x64  
LD\_LIBRARY\_PATH: /opt/hostedtoolcache/Python/3.10.0/x64/lib  
==\> linux OS detected  
[https://uploader.codecov.io/latest/linux/codecov.SHA256SUM](https://uploader.codecov.io/latest/linux/codecov.SHA256SUM)  
==\> SHASUM file signed by key id 806bb28aed779869  
==\> Uploader SHASUM verified (6e27851fbe06269589de24255b7010fba5bee9c2f9aa434c9a0f5414104f5ead codecov)  
==\> Running version latest  
==\> Running version v0.1.4  
/home/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n -Q github-action-2.1.0 -f coverage.xml -F unittests -s output -v  
[2021-10-06T00:06:42.898Z] [‘info’]  
\_\_\_\_\_ \_  
/ | | |  
| | \_\_\_ \_\_| | \_\_\_ \_\_\_ \_\_\_\_\_ \_\_  
| | / \_ \ / ` |/ \_ / **/ \_ \ \ / /  
| |**| () | (| | \_\_/ (| () \ V /  
\ __\__ \_\_\_/ \_,_|\_ **|\_** \_\_\_/ \_/

Codecov report uploader 0.1.4  
[2021-10-06T00:06:42.905Z] [‘info’] =\> Project root located at: /home/runner/work/aiospamc/aiospamc  
[2021-10-06T00:06:42.906Z] [‘info’] → No token specified or token is empty  
[2021-10-06T00:06:42.906Z] [‘verbose’] Start of network processing…  
[2021-10-06T00:06:42.906Z] [‘verbose’] Searching for files in /home/runner/work/aiospamc/aiospamc  
[2021-10-06T00:06:42.910Z] [‘info’] Searching for coverage files…  
[2021-10-06T00:06:42.920Z] [‘info’] =\> Found 1 possible coverage files:  
coverage.xml  
[2021-10-06T00:06:42.920Z] [‘verbose’] End of network processing  
[2021-10-06T00:06:42.920Z] [‘info’] Processing output/coverage.xml…  
[2021-10-06T00:06:42.924Z] [‘info’] Detected GitHub Actions as the CI provider.  
[2021-10-06T00:06:42.924Z] [‘verbose’] → Using the following env variables:  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_ACTION: \_\_codecov\_codecov-action  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_HEAD\_REF:  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_REF: refs/heads/github-actions  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_REPOSITORY: mjcaley/aiospamc  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_RUN\_ID: 1309828238  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_SERVER\_URL: [https://github.com](https://github.com)  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_SHA: 149baede5cf893ed8489545b0312f34d7b536041  
[2021-10-06T00:06:42.924Z] [‘verbose’] GITHUB\_WORKFLOW: CI  
[2021-10-06T00:06:42.926Z] [‘info’] Pinging Codecov: [https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.4&token=\*\*\*\*\*\*\*&branch=github-actions&build=1309828238&build\_url=https%3A%2F%2Fgithub.com%2Fmjcaley%2Faiospamc%2Factions%2Fruns%2F1309828238&commit=149baede5cf893ed8489545b0312f34d7b536041&job=CI&pr=&service=github-actions&slug=mjcaley%2Faiospamc&name=&tag=&flags=unittests&parent=](https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.4&token= ******* &branch=github-actions&build=1309828238&build_url=https%3A%2F%2Fgithub.com%2Fmjcaley%2Faiospamc%2Factions%2Fruns%2F1309828238&commit=149baede5cf893ed8489545b0312f34d7b536041&job=CI&pr=&service=github-actions&slug=mjcaley%2Faiospamc&name=&tag=&flags=unittests&parent=)  
[2021-10-06T00:06:42.926Z] [‘verbose’] Passed token was 0 characters long  
[2021-10-06T00:06:42.926Z] [‘verbose’] [https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.4&branch=github-actions&build=1309828238&build\_url=https%3A%2F%2Fgithub.com%2Fmjcaley%2Faiospamc%2Factions%2Fruns%2F1309828238&commit=149baede5cf893ed8489545b0312f34d7b536041&job=CI&pr=&service=github-actions&slug=mjcaley%2Faiospamc&name=&tag=&flags=unittests&parent=](https://codecov.io/upload/v4?package=github-action-2.1.0-uploader-0.1.4&branch=github-actions&build=1309828238&build_url=https%3A%2F%2Fgithub.com%2Fmjcaley%2Faiospamc%2Factions%2Fruns%2F1309828238&commit=149baede5cf893ed8489545b0312f34d7b536041&job=CI&pr=&service=github-actions&slug=mjcaley%2Faiospamc&name=&tag=&flags=unittests&parent=)  
Content-Type: ‘text/plain’  
Content-Encoding: ‘gzip’  
X-Reduced-Redundancy: ‘false’  
[2021-10-06T00:06:44.031Z] [‘verbose’] Returned upload url: [Codecov](https://codecov.io/github/mjcaley/aiospamc/commit/149baede5cf893ed8489545b0312f34d7b536041)  
[https://storage.googleapis.com/codecov/v4/raw/2021-10-06/637B072257BF2CF06C936342CDC8D934/149baede5cf893ed8489545b0312f34d7b536041/963f58e5-beda-4ff0-b018-f557616a4cb0.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20211006%2FUS%2Fs3%2Faws4\_request&X-Amz-Date=20211006T000643Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=d25c6a6ac2f71fbd15b0ced1e796b073d9da9ba0f91d6176717b61a12c4db3c8](https://storage.googleapis.com/codecov/v4/raw/2021-10-06/637B072257BF2CF06C936342CDC8D934/149baede5cf893ed8489545b0312f34d7b536041/963f58e5-beda-4ff0-b018-f557616a4cb0.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20211006%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20211006T000643Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=d25c6a6ac2f71fbd15b0ced1e796b073d9da9ba0f91d6176717b61a12c4db3c8)  
[2021-10-06T00:06:44.031Z] [‘verbose’] [https://storage.googleapis.com/codecov/v4/raw/2021-10-06/637B072257BF2CF06C936342CDC8D934/149baede5cf893ed8489545b0312f34d7b536041/963f58e5-beda-4ff0-b018-f557616a4cb0.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20211006%2FUS%2Fs3%2Faws4\_request&X-Amz-Date=20211006T000643Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=d25c6a6ac2f71fbd15b0ced1e796b073d9da9ba0f91d6176717b61a12c4db3c8](https://storage.googleapis.com/codecov/v4/raw/2021-10-06/637B072257BF2CF06C936342CDC8D934/149baede5cf893ed8489545b0312f34d7b536041/963f58e5-beda-4ff0-b018-f557616a4cb0.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20211006%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20211006T000643Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=d25c6a6ac2f71fbd15b0ced1e796b073d9da9ba0f91d6176717b61a12c4db3c8)  
Content-Type: ‘text/plain’  
Content-Encoding: ‘gzip’  
[2021-10-06T00:06:44.031Z] [‘info’] Uploading…  
[2021-10-06T00:06:44.267Z] [‘info’] {“status”:“success”,“resultURL”:“[Codecov](https://codecov.io/github/mjcaley/aiospamc/commit/149baede5cf893ed8489545b0312f34d7b536041)”}

### Expected Results

Code coverage successfully processed.

### Actual Results

Error after upload.

### Additional Information

I’ve confirmed that the coverage file isn’t empty. It’s generated by pytest-cov so it’s using the XML output (Cobertura I think). I’ve tried even limiting it to one run (OS/Python version combination).

Thanks for the help!

---

<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 11, 2021, 3:15pm UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255/2 "2021-10-11T15:15:24Z")

</div>

@mjcaley it looks like [this](https://github.com/mjcaley/aiospamc/commit/149baede5cf893ed8489545b0312f34d7b536041) fixed your issue. Was it just that you were archiving the coverage file before uploading?

---

<div class="post-metadata">

**Author:** ![mjcaley](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/mjcaley/32/2131_2.png) [@mjcaley](https://community.codecov.com/u/mjcaley)\
**Post date:** [October 11, 2021, 3:33pm UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255/3 "2021-10-11T15:33:30Z")

</div>

Actually it was a bug in the Codecov uploader where it wasn’t adding a newline within the request. I found the pull request in another thread here.

Thanks!

---

<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 11, 2021, 3:58pm UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255/4 "2021-10-11T15:58:00Z")

</div>

@mjcaley oh! I saw that PR, what an incredible fix, thanks for that!

---

<div class="post-metadata">

**Author:** ![gbltggn](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@gbltggn](https://community.codecov.com/u/gbltggn)\
**Post date:** [July 25, 2023, 7:54am UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255/5 "2023-07-25T07:54:07Z")

</div>

I’m getting the same issue while migrating my project to Java 17. I’m upgrading the jacoco version to 0.8.10 as well. What could be the issue?

---

<div class="post-metadata">

**Author:** ![gbltggn](https://avatars.discourse-cdn.com/v4/letter/g/e68b1a/32.png) [@gbltggn](https://community.codecov.com/u/gbltggn)\
**Post date:** [July 25, 2023, 7:55am UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255/6 "2023-07-25T07:55:08Z")

</div>

The fix is availabe in codecov-action@v2 right?

---

<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:** [July 25, 2023, 2:50pm UTC](https://community.codecov.com/t/error-there-was-an-error-processing-coverage-reports/3255/7 "2023-07-25T14:50:06Z")

</div>

@gbltggn please open a new topic for this.
