# Invalid request parameters

**URL:** https://community.codecov.com/t/invalid-request-parameters/3060
**Category:** Bug Fixes
**Created:** [July 21, 2021, 7:13am UTC](https://community.codecov.com/t/invalid-request-parameters/3060 "2021-07-21T07:13:31Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![gumil](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/gumil/32/1996_2.png) [@gumil](https://community.codecov.com/u/gumil)
#### Post date: [July 21, 2021, 7:13am UTC](https://community.codecov.com/t/invalid-request-parameters/3060/1 "2021-07-21T07:13:31Z")

</div>

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

### Description

I’m receiving “Invalid request parameters” errors when using the bitrise step ([https://github.com/codecov/codecov-bitrise/i](https://github.com/codecov/codecov-bitrise/i)). Using the bash script works fine. Is there a bug in the step?

### Uploader

[https://github.com/codecov/codecov-bitrise/i](https://github.com/codecov/codecov-bitrise/i)

### Codecov Output

* * *

/ _| | |  
| | \_\_\_ \_\_| | \_\_\_ \_\_\_ \_\_\_\_\_ \_\_  
| | / \_ \ / ` |/ \_ / **/ \_ \ \ / /  
| |**| () | (| | \_\_/ (| (_) \ V /  
\_\_\__\_\_\_/ \_,_|\_ **|\_** \_\_\_/ \_/  
Bash-1.0.5  
==\> git version 2.31.1 found  
==\> curl 7.47.0 (x86\_64-pc-linux-gnu) libcurl/7.47.0 GnuTLS/3.4.10 zlib/1.2.8 libidn/1.32 librtmp/2.3  
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp  
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM\_WB SSL libz TLS-SRP UnixSockets  
==\> Bitrise CI detected.  
project root: .  
 → token set from env  
Yaml not found, that’s ok! Learn more at [Codecov YAML](http://docs.codecov.io/docs/codecov-yaml)  
==\> Running gcov in . (disable via -X gcov)  
==\> Python coveragepy not found  
==\> Searching for coverage reports in:  
+ .  
 → Found 6 reports  
==\> Detecting git/mercurial file structure  
==\> Reading reports  
…  
…  
==\> Appending adjustments  
[Fixing Reports](https://docs.codecov.io/docs/fixing-reports)  
+ Found adjustments  
==\> Gzipping contents  
96K /tmp/codecov.WVuoAM.gz  
==\> Uploading reports  
url: [https://codecov.io](https://codecov.io)  
query: branch=[branch]  
 → Pinging Codecov  
[https://codecov.io/upload/v4?package=bitrise-step-1.0.5&token=](https://codecov.io/upload/v4?package=bitrise-step-1.0.5&token=)&package=bitrise-step-1.0.5&token=[REDACTED]&branch=fix%2Fcodecov&commit=d25127e76e8e&build=453&build\_url=&service=bitrise&flags=&pr=126&job=&cmd\_args=Q,Z,C  
Invalid request parameters  
400

### Expected Results

It should upload to codecov

### Actual Results

I’m receiving an error

---

<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 31, 2021, 7:39am UTC](https://community.codecov.com/t/invalid-request-parameters/3060/2 "2021-07-31T07:39:25Z")

</div>

@gumil strange, it looks like it’s using the short-form of the commit SHA. Can you share the Codecov output of it working?

---

<div class="post-metadata">

### Author: ![kaylanx](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/kaylanx/32/2081_2.png) [@kaylanx](https://community.codecov.com/u/kaylanx)
#### Post date: [September 7, 2021, 6:45pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/3 "2021-09-07T18:45:24Z")

</div>

I’m getting the same issue, I raised it on github as an issue: [Codecov step failing on bitrise · Issue #10 · codecov/codecov-bitrise · GitHub](https://github.com/codecov/codecov-bitrise/issues/10)

```auto
+------------------------------------------------------------------------------+

| (13) codecov@3 |
+------------------------------------------------------------------------------+
| id: codecov |
| version: 3.0.1 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2021-09-07T14:24:13Z |
+------------------------------------------------------------------------------+
| |
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/trustedkeys.gpg' created

100 3187 100 3187 0 0 20561 0 --:--:-- --:--:-- --:--:-- 20561
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpgv: can't allocate lock for '/root/.gnupg/trustedkeys.gpg'
gpgv: Signature made Tue 24 Aug 2021 08:58:39 PM UTC
gpgv: using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpgv: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>"
codecov: OK
[2021-09-07T14:24:15.093Z] ['info'] 
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
  Codecov report uploader 0.1.0
[2021-09-07T14:24:15.098Z] ['info'] => Project root located at: /bitrise/src
[2021-09-07T14:24:15.099Z] ['info'] -> Token found by environment variables
[2021-09-07T14:24:15.189Z] ['info'] Searching for coverage files...
[2021-09-07T14:24:15.341Z] ['info'] => Found 2 possible coverage files:
  codecov.SHA256SUM
  codecov.SHA256SUM.sig
[2021-09-07T14:24:15.341Z] ['info'] Processing /bitrise/src/codecov.SHA256SUM...
[2021-09-07T14:24:15.343Z] ['info'] Processing /bitrise/src/codecov.SHA256SUM.sig...
[2021-09-07T14:24:15.353Z] ['info'] Detected Local as the CI provider.
[2021-09-07T14:24:15.360Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=bitrise-step-3.0.0-uploader-0.1.0&token= *******&branch=HEAD&build=&build_url=&commit= 18832323a83445c00f5e3bcf17b8abad9bab6157&job=&pr=&service=&slug=//git@bitbucket.org/***** / ***** -android&name=&tag=&flags=&parent=
[2021-09-07T14:24:15.542Z] ['error'] Error POSTing to https://codecov.io: 400 Invalid request parameters
[2021-09-07T14:24:15.543Z] ['error'] Error: Error uploading to https://codecov.io: Error: Bad Request
WARN[14:24:15] Step (codecov@3) failed, but was marked as skippable 
| |
+---+---------------------------------------------------------------+----------+
| ! | codecov@3 (exit code: 255) | 2.75 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://community.codecov.io |
| Source: https://github.com/codecov/codecov-bitrise |
+---+---------------------------------------------------------------+----------+

```

---

<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: [September 7, 2021, 8:42pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/4 "2021-09-07T20:42:17Z")

</div>

Hi @kaylanx, can you make a new issue for this?

---

<div class="post-metadata">

### Author: ![luongvo](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/luongvo/32/2198_2.png) [@luongvo](https://community.codecov.com/u/luongvo)
#### Post date: [November 17, 2021, 3:59pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/5 "2021-11-17T15:59:37Z")

</div>

Hi @tom, is this bug has been resolved yet? Any update on this, please, as I’m facing the same issue.

```auto
+------------------------------------------------------------------------------+

| (4) codecov@3.1 |
+------------------------------------------------------------------------------+
| id: codecov |
| version: 3.1.2 |
| collection: https://github.com/bitrise-io/bitrise-steplib.git |
| toolkit: bash |
| time: 2021-11-17T12:15:49Z |
+------------------------------------------------------------------------------+
| |
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 3187 100 3187 0 0 24143 0 --:--:-- --:--:-- --:--:-- 24143
gpg: directory '/Users/vagrant/.gnupg' created
gpg: keybox '/Users/vagrant/.gnupg/trustedkeys.gpg' created
gpg: /Users/vagrant/.gnupg/trustdb.gpg: trustdb created
gpg: key 806BB28AED779869: public key "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>" imported
gpg: Total number processed: 1
gpg: imported: 1
gpgv: can't allocate lock for '/Users/vagrant/.gnupg/trustedkeys.gpg'
gpgv: Signature made Tue Nov 9 18:53:32 2021 GMT
gpgv: using RSA key 27034E7FDB850E0BBC2C62FF806BB28AED779869
gpgv: Good signature from "Codecov Uploader (Codecov Uploader Verification Key) <security@codecov.io>"
codecov: OK
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed

  0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 642 100 642 0 0 12840 0 --:--:-- --:--:-- --:--:-- 12840
"version":"v0.1.9"
[2021-11-17T12:15:52.929Z] ['info'] 
     _____ _
    / ____ | | |
   | | _____ | | ______  _______
   | | / _ \ / _` |/ _ \/ __/ _ \ \ / /
   | |___| (_) | (_| |__/ (_| (_) \ V /
    \ _____\___ / \ __,_|\___ |\ ___\___ / \_/
  Codecov report uploader 0.1.12
[2021-11-17T12:15:52.947Z] ['info'] => Project root located at: /Users/vagrant/git
[2021-11-17T12:15:52.948Z] ['info'] -> Token found by environment variables
[2021-11-17T12:15:52.967Z] ['info'] Searching for coverage files...
[2021-11-17T12:15:53.019Z] ['info'] => Found 1 possible coverage files:
  coverage/lcov.info
[2021-11-17T12:15:53.019Z] ['info'] Processing /Users/vagrant/git/coverage/lcov.info...
[2021-11-17T12:15:53.023Z] ['info'] Using manual override from args.
[2021-11-17T12:15:53.037Z] ['info'] Detected Local as the CI provider.
[2021-11-17T12:15:53.067Z] ['info'] Pinging Codecov: https://codecov.io/upload/v4?package=bitrise-step-3.0.0-uploader-0.1.12&token= ******* &branch=chore%2Fvsmf-95-ci-codecov-integration&build=&build_url=&commit=true&job=&pr=&service=&slug=cloud_arv%2Fagritech%2Fservice-matching%2Fvarun-matchmaking-flutter&name=&tag=&flags=&parent=
[2021-11-17T12:15:53.185Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 400 - Bad Request - Invalid request parameters
WARN[12:15:53] Step (codecov@3.1) failed, but was marked as skippable 
| |
+---+---------------------------------------------------------------+----------+
| ! | codecov@3.1 (exit code: 255) | 5.34 sec |
+---+---------------------------------------------------------------+----------+
| Issue tracker: https://community.codecov.io |
| Source: https://github.com/codecov/codecov-bitrise |
+---+---------------------------------------------------------------+----------+

```

---

<div class="post-metadata">

### Author: ![luongvo](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/luongvo/32/2198_2.png) [@luongvo](https://community.codecov.com/u/luongvo)
#### Post date: [November 18, 2021, 4:53am UTC](https://community.codecov.com/t/invalid-request-parameters/3060/6 "2021-11-18T04:53:26Z")

</div>

@tom any update on this issue, please?

---

<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: [November 18, 2021, 2:13pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/7 "2021-11-18T14:13:30Z")

</div>

@luongvo can you provide the Codecov section of the bitrise.yml you are using? Are you using their step builder or yaml to configure?

---

<div class="post-metadata">

### Author: ![luongvo](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/luongvo/32/2198_2.png) [@luongvo](https://community.codecov.com/u/luongvo)
#### Post date: [November 18, 2021, 2:27pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/8 "2021-11-18T14:27:31Z")

</div>

@tom here you are:

```auto
  codecov:
    steps:
    - activate-ssh-key@4:
        run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
    - git-clone@6: {}
    - flutter-installer@0:
        title: Setup the flutter environment
    - flutter-test@1:
        title: Run widget tests, unit tests
        inputs:
        - additional_params: "--coverage"
    - codecov@3.1:
        inputs:
        - OS: macos
        - CODECOV_TOKEN: "$CODECOV_TOKEN"
    - deploy-to-bitrise-io@2: {}

```

I don’t know exactly what does OS field mean as I can’t find any official document

---

<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: [November 18, 2021, 5:52pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/9 "2021-11-18T17:52:03Z")

</div>

@luongvo, can you try adding

```auto
    - codecov@3.1:
        inputs:
        - OS: macos
        - CODECOV_TOKEN: "$CODECOV_TOKEN"
        - other_options: "-C $BITRISE_GIT_COMMIT"

```

As for `OS`, it is posted alongside the step like this:

![image](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/2X/2/2aeafc677b2df3af129197f8b527d25946f5571d.png)

which is sourced [here](https://github.com/codecov/codecov-bitrise/blob/master/step.yml#L31). Are you using the step builder or yaml to configure? It would be useful to know where you looked for documentation so that we can add/update accordingly.

---

<div class="post-metadata">

### Author: ![luongvo](https://yyz1.discourse-cdn.com/flex029/user_avatar/community.codecov.com/luongvo/32/2198_2.png) [@luongvo](https://community.codecov.com/u/luongvo)
#### Post date: [November 19, 2021, 3:15am UTC](https://community.codecov.com/t/invalid-request-parameters/3060/10 "2021-11-19T03:15:03Z")

</div>

@tom FYI it just works properly without any changes, I still don’t why. I did not change any config here

```auto
      - codecov@3:
          inputs:
            - OS: macos
            - CODECOV_TOKEN: "$CODECOV_TOKEN"

```

I’m using step builder to configure.

---

<div class="post-metadata">

### Author: ![bratxdy](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@bratxdy](https://community.codecov.com/u/bratxdy)
#### Post date: [February 24, 2022, 9:18pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/11 "2022-02-24T21:18:47Z")

</div>

I am seeing this same issue. Have tried the suggestions from @tom which didn’t work. Is this something that breaks regularly? It seems like it fixed itself for the others in this thread.

---

<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: [February 28, 2022, 7:12pm UTC](https://community.codecov.com/t/invalid-request-parameters/3060/12 "2022-02-28T19:12:35Z")

</div>

@bratxdy can you open a new topic for this?
