# AppVeyour can't upload coverage report

**URL:** <https://community.codecov.com/t/appveyour-cant-upload-coverage-report/2411>\
**Category:** Uncategorized\
**Created:** [December 10, 2020, 4:35pm UTC](https://community.codecov.com/t/appveyour-cant-upload-coverage-report/2411 "2020-12-10T16:35:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ericlemes](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/ericlemes/32/1411_2.png) [@ericlemes](https://community.codecov.com/u/ericlemes)\
**Post date:** [December 10, 2020, 4:35pm UTC](https://community.codecov.com/t/appveyour-cant-upload-coverage-report/2411/1 "2020-12-10T16:35:28Z")

</div>

Hi there,

I have a project I setup a long time ago using AppVeyour and [codecov.io](http://codecov.io). It is an open source project.

I’m having a very strange issue with no error message and a failed report in the end. Anyone had similar issues?

The AppVeyor build link is [vcsparser 1.0.111 - AppVeyor](https://ci.appveyor.com/project/ericlemes/vcsparser/builds/36765450)

The report should be displayed at: [Commit ⋅ ericlemes/vcsparser (codecov.io)](https://codecov.io/github/ericlemes/vcsparser/commit/9516b776aec709eb534c6d9d9b8561ed3bb91eef)

This is the bit of the yml to push the report  
$env:PATH = ‘C:\msys64\usr\bin;’ + $env:PATH  
Invoke-WebRequest -Uri ‘[https://codecov.io/bash](https://codecov.io/bash)’ -OutFile codecov.sh  
bash codecov.sh -f “coverage.xml” -t -v

I appreciate any help as my build is broken right now ☹

---

<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:** [December 11, 2020, 1:27am UTC](https://community.codecov.com/t/appveyour-cant-upload-coverage-report/2411/2 "2020-12-11T01:27:17Z")

</div>

Hi @ericlemes, if you view the raw coverage report before uploading, it’s empty

```auto
<?xml version="1.0" encoding="utf-8"?>
<CoverageSession xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="4.7.922.0">
  <Summary numSequencePoints="0" visitedSequencePoints="0" numBranchPoints="0" visitedBranchPoints="0" sequenceCoverage="0" branchCoverage="0" maxCyclomaticComplexity="0" minCyclomaticComplexity="0" maxCrapScore="0" minCrapScore="0" visitedClasses="0" numClasses="0" visitedMethods="0" numMethods="0" />
  <Modules />
</CoverageSession>

```

There probably is an issue with how you are collecting coverage before the Codecov step.

---

<div class="post-metadata">

**Author:** ![ericlemes](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/ericlemes/32/1411_2.png) [@ericlemes](https://community.codecov.com/u/ericlemes)\
**Post date:** [December 17, 2020, 12:06pm UTC](https://community.codecov.com/t/appveyour-cant-upload-coverage-report/2411/3 "2020-12-17T12:06:17Z")

</div>

Hi Tom,

Thanks, you were right. Something changed on AppVeyor environment and broke my coverage ☹

It took me some time, but actually is an OpenCover switch that needs to be -register:appveyor instead of -register:user.

After fixing that and getting a report (that is actually published), I’m still getting an exception on the CI, with no clear error message. Can you help me with that?

[https://ci.appveyor.com/project/ericlemes/vcsparser/builds/36885938](https://ci.appveyor.com/project/ericlemes/vcsparser/builds/36885938)

Regards

Eric

---

<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:** [December 17, 2020, 4:37pm UTC](https://community.codecov.com/t/appveyour-cant-upload-coverage-report/2411/4 "2020-12-17T16:37:56Z")

</div>

@ericlemes, I think this is a Windows-related issue. You are running

```auto
bash codecov.sh -v -f "coverage.xml" -t [REDACTED]

```

but Powershell doesn’t always place nicely here. You want to do

```auto
curl -s https://codecov.io/bash | bash -s - -v -f "coverage.xml" -t <token>

```
