# Error uploading to https://codecov.io

**URL:** <https://community.codecov.com/t/error-uploading-to-https-codecov-io/3644>\
**Category:** Support\
**Created:** [May 13, 2022, 10:46am UTC](https://community.codecov.com/t/error-uploading-to-https-codecov-io/3644 "2022-05-13T10:46:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karolina002](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/karolina002/32/2646_2.png) [@Karolina002](https://community.codecov.com/u/Karolina002)\
**Post date:** [May 13, 2022, 10:46am UTC](https://community.codecov.com/t/error-uploading-to-https-codecov-io/3644/1 "2022-05-13T10:46:33Z")

</div>

### Description

Failed to upload files to [codecov.io](http://codecov.io) due to invalid request parameters

### CI/CD URL

[https://github.com/pmem/pmemstream/runs/6421259630?check\_suite\_focus=true](https://github.com/pmem/pmemstream/runs/6421259630?check_suite_focus=true)  
[https://github.com/pmem/pmemstream/blob/master/codecov.yml](https://github.com/pmem/pmemstream/blob/master/codecov.yml)

> **[pmemstream/.github/workflows at New\_coverage\_uploader · Karolina002/pmemstream](https://github.com/Karolina002/pmemstream/tree/New_coverage_uploader/.github/workflows)**
>
> Contribute to Karolina002/pmemstream development by creating an account on GitHub.

(codecov is dowloaded in pmemstream/utils/docker/images/download-scripts.sh and used in pmemstream/utils/docker/prepare-for-build.sh)

### Codecov Output

COVERAGE upload\_codecov START

[2022-05-13T10:27:57.273Z] [‘verbose’] Start of uploader: 1652437677273…

[2022-05-13T10:27:57.275Z] [‘info’]

Codecov report uploader 0.2.2

[2022-05-13T10:27:57.276Z] [‘info’] =\> Project root located at: .

[2022-05-13T10:27:57.278Z] [‘info’] → No token specified or token is empty

[2022-05-13T10:27:57.278Z] [‘verbose’] Start of network processing…

[2022-05-13T10:27:57.278Z] [‘verbose’] Searching for files in .

[2022-05-13T10:27:57.284Z] [‘verbose’] Running gcov…

[2022-05-13T10:27:58.766Z] [‘verbose’] File ‘/pmemstream/src/id\_manager.c’

Lines executed:88.89% of 72

No branches

No calls

Creating ‘#pmemstream#src#id\_manager.c.gcov’

File ‘/pmemstream/src/iterator.c’

Lines executed:97.32% of 112

No branches

No calls

Creating ‘#pmemstream#src#iterator.c.gcov’

File ‘/pmemstream/src/libpmemstream\_internal.h’

Lines executed:100.00% of 9

No branches

No calls

Creating ‘#pmemstream#src#libpmemstream\_internal.h.gcov’

.  
.  
.

Creating ‘#pmemstream#src#critnib#pmdk-compat.h.gcov’

File ‘/pmemstream/src/region\_allocator/region\_allocator.c’

Lines executed:95.71% of 70

Branches executed:79.28% of 444

Taken at least once:52.48% of 444

Calls executed:75.97% of 154

Creating ‘#pmemstream#src#region\_allocator#region\_allocator.c.gcov’

[2022-05-13T10:27:58.770Z] [‘verbose’] coveragepy is not installed

[2022-05-13T10:27:58.770Z] [‘info’] Searching for coverage files…

[2022-05-13T10:27:58.897Z] [‘info’] Warning: Some files located via search were excluded from upload.

[2022-05-13T10:27:58.897Z] [‘info’] If Codecov did not locate your files, please review [Supported Coverage Report Formats](https://docs.codecov.com/docs/supported-report-formats)

[2022-05-13T10:27:58.899Z] [‘info’] =\> Found 179 possible coverage files:

#pmemstream#examples#01\_basic\_iterate#main.c.gcov

#pmemstream#examples#02\_visual\_iterator#main.cpp.gcov

#pmemstream#examples#03\_reserve\_publish#main.cpp.gcov

.  
.  
.

[2022-05-13T10:27:58.899Z] [‘verbose’] End of network processing

[2022-05-13T10:27:58.899Z] [‘info’] Processing #pmemstream#examples#01\_basic\_iterate#main.c.gcov…

[2022-05-13T10:27:58.911Z] [‘info’] Processing #pmemstream#examples#02\_visual\_iterator#main.cpp.gcov…

[2022-05-13T10:27:58.912Z] [‘info’] Processing #pmemstream#examples#03\_reserve\_publish#main.cpp.gcov…

.  
.  
.

[2022-05-13T10:27:59.675Z] [‘info’] Detected GitHub Actions as the CI provider.

[2022-05-13T10:27:59.675Z] [‘verbose’] → Using the following env variables:

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB\_ACTION: undefined

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB\_HEAD\_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB\_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB\_REPOSITORY: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB\_RUN\_ID: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB\_SERVER\_URL: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB\_SHA: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB\_WORKFLOW: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] Using the following upload parameters:

[2022-05-13T10:27:59.677Z] [‘verbose’] branch

[2022-05-13T10:27:59.677Z] [‘verbose’] build

[2022-05-13T10:27:59.677Z] [‘verbose’] buildURL

[2022-05-13T10:27:59.677Z] [‘verbose’] commit

[2022-05-13T10:27:59.677Z] [‘verbose’] job

[2022-05-13T10:27:59.677Z] [‘verbose’] pr

[2022-05-13T10:27:59.677Z] [‘verbose’] service

[2022-05-13T10:27:59.677Z] [‘verbose’] slug

[2022-05-13T10:27:59.677Z] [‘verbose’] name

[2022-05-13T10:27:59.677Z] [‘verbose’] tag

[2022-05-13T10:27:59.677Z] [‘verbose’] flags

[2022-05-13T10:27:59.677Z] [‘verbose’] parent

[2022-05-13T10:27:59.679Z] [‘info’] Pinging Codecov: [https://codecov.io/upload/v4?package=uploader-0.2.2&token=\*\*\*\*\*\*\*&branch=&build=&build\_url=undefined%2F%2Factions%2Fruns%2F&commit=&job=&pr=&service=github-actions&slug=&name=&tag=&flags=tests\_gcc\_debug\_cpp17&parent=](https://codecov.io/upload/v4?package=uploader-0.2.2&token= ******* &branch=&build=&build_url=undefined%2F%2Factions%2Fruns%2F&commit=&job=&pr=&service=github-actions&slug=&name=&tag=&flags=tests_gcc_debug_cpp17&parent=)

[2022-05-13T10:27:59.679Z] [‘verbose’] Passed token was 0 characters long

[2022-05-13T10:27:59.679Z] [‘verbose’] [https://codecov.io/upload/v4?package=uploader-0.2.2&branch=&build=&build\_url=undefined%2F%2Factions%2Fruns%2F&commit=&job=&pr=&service=github-actions&slug=&name=&tag=&flags=tests\_gcc\_debug\_cpp17&parent=](https://codecov.io/upload/v4?package=uploader-0.2.2&branch=&build=&build_url=undefined%2F%2Factions%2Fruns%2F&commit=&job=&pr=&service=github-actions&slug=&name=&tag=&flags=tests_gcc_debug_cpp17&parent=)

Content-Type: ‘text/plain’

Content-Encoding: ‘gzip’

X-Reduced-Redundancy: ‘false’

[sudo] password for user: [sudo] password for user: [sudo] password for user: [sudo] password for user: [2022-05-13T10:27:59.878Z] [‘error’] There was an error running the uploader: Error uploading to [https://codecov.io](https://codecov.io): Error: There was an error fetching the storage URL during POST: 400 - Bad Request - Invalid request parameters

[2022-05-13T10:27:59.878Z] [‘verbose’] The error stack is: Error: Error uploading to [https://codecov.io](https://codecov.io): Error: There was an error fetching the storage URL during POST: 400 - Bad Request - Invalid request parameters

at main (/snapshot/repo/dist/src/index.js)

at processTicksAndRejections (node:internal/process/task\_queues:96:5)

[2022-05-13T10:27:59.878Z] [‘verbose’] End of uploader: 2605 milliseconds

Error: Process completed with exit code 255.

### Expected Results

Coverage reports to be uploaded to Codecov

### Actual Results

[‘error’] There was an error running the uploader: Error uploading to [https://codecov.io](https://codecov.io):  
Error: There was an error fetching the storage URL during POST:  
400 - Bad Request - Invalid request parameters  
[2022-05-13T10:27:59.878Z] [‘verbose’] The error stack is: Error: Error uploading to [https://codecov.io](https://codecov.io): Error: There was an error fetching the storage URL during POST: 400 - Bad Request - Invalid request parameters  
at main (/snapshot/repo/dist/src/index.js)  
at processTicksAndRejections (node:internal/process/task\_queues:96:5)

---

<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:** [May 13, 2022, 9:06pm UTC](https://community.codecov.com/t/error-uploading-to-https-codecov-io/3644/2 "2022-05-13T21:06:50Z")

</div>

@Karolina002 are you running this in a docker container? I see that all the GitHub Actions variables are coming in as `undefined`

```auto
[2022-05-13T10:27:59.675Z] [‘verbose’] → Using the following env variables:

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB_ACTION: undefined

[2022-05-13T10:27:59.675Z] [‘verbose’] GITHUB_HEAD_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_REF: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_REPOSITORY: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_RUN_ID: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_SERVER_URL: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_SHA: undefined

[2022-05-13T10:27:59.676Z] [‘verbose’] GITHUB_WORKFLOW: undefined

```

---

<div class="post-metadata">

**Author:** ![Karolina002](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/karolina002/32/2646_2.png) [@Karolina002](https://community.codecov.com/u/Karolina002)\
**Post date:** [May 20, 2022, 2:03pm UTC](https://community.codecov.com/t/error-uploading-to-https-codecov-io/3644/3 "2022-05-20T14:03:58Z")

</div>

@tom thank you for your help, it solves the problem
