# Provided token is not a UUID error with Gitlab CI

**URL:** <https://community.codecov.com/t/provided-token-is-not-a-uuid-error-with-gitlab-ci/1462>\
**Category:** Support\
**Tags:** python\
**Created:** [May 26, 2020, 2:12pm UTC](https://community.codecov.com/t/provided-token-is-not-a-uuid-error-with-gitlab-ci/1462 "2020-05-26T14:12:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kashyapm94](https://avatars.discourse-cdn.com/v4/letter/k/f08c70/32.png) [@kashyapm94](https://community.codecov.com/u/kashyapm94)\
**Post date:** [May 26, 2020, 2:12pm UTC](https://community.codecov.com/t/provided-token-is-not-a-uuid-error-with-gitlab-ci/1462/1 "2020-05-26T14:12:00Z")

</div>

Hey guys,

I am trying to do code coverage for a flask app in Python and uploading it on the `codecov.io` platform. I am trying to upload it directly via Gitlab CI, but it doesn’t happen. It keeps throwing the following error:

```
HTTP 400
Provided token is not a UUID.

```

I created an account on `codecov.io` and connected it to my gitlab account and selected a repository to work with. I added the token as an environment variable in gitlab CI

My CI file is:

```
image: ubuntu:18.04

variables:
    CODECOV_TOKEN: $CODECOV_TOKEN

stages:
    - coverage
    - deploy

coverage:
    stage: coverage
    before_script:
        - apt-get -y update
        - apt-get -y install curl python3-pip python3.7 zip
        - python3.7 -m pip install --upgrade pip
        - python3.7 -V
        - pip3.7 install -r requirements.txt

    script:
        - coverage run -m pytest
        - coverage report -m

    after_script:
       - bash <(curl -s https://codecov.io/bash) -t $CODECOV_TOKEN

```

The error screenshot:

 ![CI](https://canada1.discourse-cdn.com/flex029/uploads/codecov/original/1X/37ff67c6a5e3240a79d532c1cea0771eba20910d.png)

But, when I did `bash <(curl -s https://codecov.io/bash) -t <token>` from the linux terminal, it was successfully uploaded.

What is the mistake that I am doing?

---

<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 26, 2020, 8:14pm UTC](https://community.codecov.com/t/provided-token-is-not-a-uuid-error-with-gitlab-ci/1462/2 "2020-05-26T20:14:22Z")

</div>

If you haven’t already, please use the latest version of the python uploader or switch to the recommended bash uploader.

---

<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:** [June 4, 2020, 3:55am UTC](https://community.codecov.com/t/provided-token-is-not-a-uuid-error-with-gitlab-ci/1462/3 "2020-06-04T03:55:16Z")

</div>

Hi @kashyapm94, I realized my mistake here, you are already using the bash uploader. What repository is this for, and can you give me a recent commit SHA?
