Unable to view coverage report in codecov

Before submitting a topic, please confirm the following

I have searched for similar issues before creating this topic.
I have verified that my repository is using the Codecov GitHub app, if using GitHub
I have validated my codecov.yaml configuration file.
I have filled out the below sections to the best of my ability.
I understand that the community boards are a free, best-effort tool. While we hope to have someone on the Codecov team resolve your problem quickly, this is not always possible.


I have a Django app with a CircleCI pipeline. In the pipeline I’m running coverage using Python’s coverage library. I want to upload the coverage.xml results to CodeCov but I’m not able to see them. I’m getting this message: There was a problem getting repo contents from your provider as well as an error that my report is unusable.

The way I’m running the coverage is inside a container in CircleCI that generates the coverage.xml report which I then upload to CodeCov using the codecov/codecov@3.2.4 orb. In the XML report I have this line:


which I guess points to the root of the files. My repo is structured like this: <root_folder>/app/. To address this I introduced a codecov.yml in the root of the project which looks like this:

  - "/app"::"./app"

I also introduced a team bot in the /account/github/<org>/yaml. The bot user is authenticated with CodeCov and has permissions to access the repository. I’m still getting the errors after I tried all those suggested fixes.

Codecov Output

[2023-06-07T15:33:34.212Z] ['info'] 
     _____          _
    / ____|        | |
   | |     ___   __| | ___  ___ _____   __
   | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |  __/ (_| (_) \ V /
    \_____\___/ \__,_|\___|\___\___/ \_/

  Codecov report uploader 0.5.0
[2023-06-07T15:33:34.218Z] ['info'] => Project root located at: /home/circleci/project
[2023-06-07T15:33:34.219Z] ['info'] ->  Token found by arguments
[2023-06-07T15:33:34.233Z] ['info'] Searching for coverage files...
[2023-06-07T15:33:34.281Z] ['info'] => Found 1 possible coverage files:
[2023-06-07T15:33:34.281Z] ['info'] Processing ./coverage-report/coverage.xml...
[2023-06-07T15:33:34.293Z] ['info'] Detected CircleCI as the CI provider.
[2023-06-07T15:33:34.294Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=codecov-circleci-orb-3.2.4-uploader-0.5.0&token=*******&branch=alekb%2Ftest-coverage-job&build=12683&build_url=https%3A%2F%2Fcircleci.com%2Fgh%2Fmodsy%2Ftim%2F12683&commit=8ffbeff516994624bddaabe79015afc28a5659d8&job=0&pr=&service=circleci&slug=modsy%2Ftim&name=%24%7BCIRCLE_BUILD_NUM%7D&tag=&flags=&parent=
[2023-06-07T15:33:34.501Z] ['info'] https://app.codecov.io/github/modsy/tim/commit/8ffbeff516994624bddaabe79015afc28a5659d8
[2023-06-07T15:33:34.502Z] ['info'] Uploading...
[2023-06-07T15:33:34.659Z] ['info'] {"status":"success","resultURL":"https://app.codecov.io/github/modsy/tim/commit/8ffbeff516994624bddaabe79015afc28a5659d8"}
CircleCI received exit code 0

Expected Results

I expect to be able to see my coverage reports in CodeCov.

Actual Results

I’m getting 2 errors:

  1. There was a problem getting repo contents from your provider
  2. There is an error processing the coverage reports. Common issues are files paths, empty files or expired reports. See error reference page for additional troubleshooting to resolve error.

Hi @alekb, can you try uninstalling the GitHub app and re-installing? Let’s see if that fixes some of your problems.

Hi @tom,

Thanks for the reply. I reinstalled the CodeCov Github app and also did some other things and it’s now working. Thanks for the assistance :slight_smile:

1 Like