Error processing coverage reports

Description

I’ve got this error for a while : " There was an error processing coverage reports."

Here is the result from the codecov command :

  _____          _  
 / ____|        | |  
| |     ___   __| | ___  ___ _____   __  
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /  
| |___| (_) | (_| |  __/ (_| (_) \ V /  
 \_____\___/ \__,_|\___|\___\___/ \_/  
                                v3.6.1
==> Detecting CI Provider
    Wercker CI Detected
==> Configuration: 
    Endpoint: https://codecov.io
{ commit: 'fac2a3df3f904b5e10f82bc64e3d7aa390250032',
  branch: 'objectives',
  package: 'node-v3.6.1' }
==> Building file structure
==> Generating gcov reports (skip via --disable=gcov)
    $ find /pipeline/source -type f -name '*.gcno'  -exec gcov  {} +
==> Targeting specific file
    + /pipeline/source/coverage/coverage-final.json
==> Uploading reports
    Success!
    View report at: https://codecov.io/github/xurei/frizby-api/commit/fac2a3df3f904b5e10f82bc64e3d7aa390250032

Repository

Private repository : Github, xurei/frizby-api

Versions

Firefox 69 and Chrome. I don’t believe the browser is impacting this

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

I’m annoyed that the node uploader isn’t telling you what’s wrong, PRs welcome.

Here’s the error the server is returning that is getting hidden:

WARNING {"error": "AssertionError", "method": "POST", "ms": "4", "reason": "(400, u'Please provide the repository token to upload reports via `-t :repository-token`')", "status": 400, "url": "/upload/v4?commit=fac2a3df3f904b5e10f82bc64e3d7aa390250032&branch=objectives&yaml=&package=node-v3.6.1"}

In case the node uploader doesn’t have a clear way to pass the token, the bash uploader will return the message and allow you to set it.

I’ve added the token, but I still have the same error :

https://codecov.io/gh/xurei/frizby-api/commit/1275bbbb89c55223e46c3eb4eb260befb422cb96

It’s a different error now. I don’t want to post the raw report here as I’m not sure this is a public repo, but the uploader did not upload any coverage report for that commit.

I recommend trying the bash uploader https://docs.codecov.io/docs/about-the-codecov-bash-uploader

It will give much better output, including telling you if it found a report or not.

It’s working now. Thank you for your help :slight_smile:

1 Like