Skip to content

[BUG] Could not pull latest version information: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #1799

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nitram509 opened this issue Mar 24, 2025 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@nitram509
Copy link

nitram509 commented Mar 24, 2025

Describe the bug

I'm using codecov@v4 action in my Open Source project since a while,
but today I got this error message and my GH actions 'on merge PR' did fail with error:

(snipped from GH action log

Primary key fingerprint: 2703 4E7F DB85 0E0B BC2C  62FF 806B B28A ED77 9869
==> Uploader SHASUM verified (39dd112393680356daf701c07f375303aef5de62f06fc80b466b5c3571336014  codecov)
==> Running version latest
Could not pull latest version information: SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
==> Running git config --global --add safe.directory /home/runner/work/ntgrrc/ntgrrc
/usr/bin/git config --global --add safe.directory /home/runner/work/ntgrrc/ntgrrc
==> Running command '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov -v create-commit'
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov -v create-commit --git-service github -Z
/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov: 1: Syntax error: ")" unexpected
Error: Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 2

To Reproduce
Steps to reproduce the behavior:

  1. Using dependabot, which proposed an upgrade of a lib
  2. On PR, GH Action was triggered

See CI link below for full log.

Expected behavior
Guessing there was an issue with rate limiting or other reasons why the access to the codecov server did fail,
but I expect better error handling and seeing reasonable error messages, so I understand what to do.

Versions

  • OS: ubuntu-24.04-arm
  • Git Host: Github
  • Uploader 'codecov/codecov-action@v4' (SHA:b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238)

Commit and CI link
See this is the error:
https://github.com/nitram509/ntgrrc/actions/runs/14032535405/job/39283179101#step:7:49

@thomasrockhu-codecov
Copy link
Contributor

@nitram509 this looks like a one-off, you shouldn't receive that error on retry. Please upgrade to v5 if you are still experiencing the issue.

@elichai
Copy link

elichai commented Apr 28, 2025

It seems to actually happen persistently on ARM machines (Sadly it's a private project and private github hosted runner so I can't share logs/links)

@thomasrockhu-codecov
Copy link
Contributor

@elichai have you tried setting the os: arg to the proper ARM version? You can see values here: cli.codecov.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants