Error 500 trying to upload a coverage report

Description

Moving here from: https://github.com/codecov/codecov-action/issues/140

Using the official GitHub CodeCov action I’m having this error in some of our builds:

==> Uploading to Codecov
curl: (3) [globbing] unmatched close brace/bracket in column 102
    HTTP 500

Repository

CI/CD

GitHub Actions

Uploader

CodeCov GitHub Action

Codecov Output

Steps to Reproduce

Expected behavior: To return a more descriptive error code if something in the format is bad, not a 500 HTTP Error

Actual behavior: The API is returning a 500 HTTP Error

Hi @gcotelli, I just bumped up a new version of the action to add a verbose flag. Would you be able to run the latest version setting verbose: true?

Hi, I think I have more information.
I’ve managed to fix the build and it was because

- name: Upload coverage to Codecov
     uses: codecov/codecov-action@v1
     with:
        file: ${{ env.SCI_COVERAGE_FILE_LOCATION }}
        token: ${{ secrets.CODECOV_TOKEN }}}

had an extra } at the end.
Maybe this extra } is leaking somehow as the token and producing the 500 error in the API call

1 Like