Skip to content
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

[bug] v4.3.1: Unexpected token '<', "<!DOCTYPE "... is not valid JSON #543

Open
knkarlsson opened this issue Mar 12, 2024 · 5 comments
Open
Labels
bug Something isn't working

Comments

@knkarlsson
Copy link

What happened?

Intermittent failures when uploading artifacts using
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 #version 4.3.1

The errors we have seen (in different builds):

Error: Failed to FinalizeArtifact: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Error: Failed to CreateArtifact: Unexpected token '<', "<!DOCTYPE "... is not valid JSON

What did you expect to happen?

Successful upload of artifacts

How can we reproduce it?

Not sure, these are intermittent errors for us, seen only a couple of times since we started using v4 about 2 weeks ago. The workflows in our project do a few hundreds of similar uploads per day, most of the time without problem.

Anything else we need to know?

The artifacts that were failed to be uploaded were just a couple of small files.

What version of the action are you using?

version 4.3.1

What are your runner environments?

linux

Are you on GitHub Enterprise Server? If so, what version?

No response

@knkarlsson knkarlsson added the bug Something isn't working label Mar 12, 2024
@codespearhead
Copy link

For reference: keycloak/keycloak#27692

@sa1g0n1337
Copy link

same issue here

@trym-b
Copy link

trym-b commented Mar 27, 2024

I also just encountered this issue with this workflow run: https://github.com/nlnwa/warchaeology/actions/runs/8449566338/job/23143911184#step:11:14
Re-triggering the workflow run made the workflow green again.

The relevant part of the log is:

##[group]Run actions/upload-artifact@v4
with:
  name: deb-amd64
  path: dist/warchaeology_*amd64.deb
  if-no-files-found: warn
  compression-level: 6
  overwrite: false
env:
  flags: --snapshot
##[endgroup]
With the provided path, there will be 1 file uploaded
Artifact name is valid!
Root directory input is valid!
##[error]Failed to CreateArtifact: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
Post job cleanup.

@markmssd
Copy link
Contributor

markmssd commented Apr 3, 2024

Also encountering the issue, here's a screenshot of it if that helps:

upload-artifacts

@kisPocok
Copy link

kisPocok commented Apr 4, 2024

Same issue here. We have recently migrated to v4.3.1

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

6 participants