Skip to content

Confusing error when API responds with HTML instead of JSON #248

Open
@kpheasey

Description

@kpheasey

I suddenly started receiving this error today on CircleCI 2.0

Failing command: ./cc-test-reporter upload-coverage 
Exit code: 255 
Output:
Error: invalid character '<' looking for beginning of value
Usage:
  cc-test-reporter upload-coverage [flags]

Here's the relevant lines from my config.yml

# send to codelcimate
- run: ./cc-test-reporter format-coverage -t simplecov $CIRCLE_ARTIFACTS/coverage/.resultset.json
- run: ./cc-test-reporter upload-coverage --exit-code

To get around this problem, I've changed the last line to - run: ./cc-test-reporter upload-coverage --exit-code$? || true. This is based on a comment in another issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions