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
HTTP 400 error on uploading artifacts. #233
Comments
seeing the same issue, happens on Mac and self-hosted |
@99 I have been unable to solve this issue, ended up uploading my artifacts to an S3 bucket using the AWS cli. |
Actual error.
|
Having the same problem on |
attempted workaround for actions/upload-artifact#233
I have the same error also, windows-latest:
|
Following the README's workaround for throttled requests, compressing the folder before uploading made it work for me, although the zip was nested (#39). Perhaps 400 errors are sent by the server in place of 429 for us for whatever reason. Maybe this info about my folder upload attempts can help someone who knows about the rate limits:
|
Appears that it may be caused by empty files. See this workflow run: https://github.com/skyrim-multiplayer/skymp/runs/4490126560?check_suite_focus=true Commit: skyrim-multiplayer/skymp@5ae9d05 As can be seen from the job log, action was failing, but, after removing the empty file, artifact upload was successful. Another example:
Log diff shows that both runner image and this action were updated: click to expand--- 1 2021-12-11 03:54:59.296217660 +0300
+++ 2 2021-12-11 03:55:15.176151694 +0300
@@ -1,8 +1,8 @@
Found online and idle hosted runner in the current repository's organization account that matches the required labels: 'windows-2019'
Waiting for a Hosted runner in the 'organization' to pick this job...
Job is waiting for a hosted runner to come online.
-Job is about to start running on the hosted runner: GitHub Actions 5 (hosted)
-Current runner version: '2.285.0'
+Job is about to start running on the hosted runner: GitHub Actions 2 (hosted)
+Current runner version: '2.285.1'
##[group]Operating System
Microsoft Windows Server 2019
10.0.17763
@@ -10,9 +10,9 @@
##[endgroup]
##[group]Virtual Environment
Environment: windows-2019
-Version: 20211229.2
-Included Software: https://github.com/actions/virtual-environments/blob/win19/20211229.2/images/win/Windows2019-Readme.md
-Image Release: https://github.com/actions/virtual-environments/releases/tag/win19%2F20211229.2
+Version: 20211207.2
+Included Software: https://github.com/actions/virtual-environments/blob/win19/20211207.2/images/win/Windows2019-Readme.md
+Image Release: https://github.com/actions/virtual-environments/releases/tag/win19%2F20211207.2
##[endgroup]
##[group]Virtual Environment Provisioner
1.0.0.0-master-20211123-1
@@ -38,4 +38,4 @@
Getting action download info
Download action repository 'actions/checkout@v2' (SHA:ec3a7ce113134d7a93b817d10a8272cb61118579)
Download action repository 'suisei-cn/actions-download-file@v1' (SHA:40e036cbce6bfe6f2500eebca35614bb89308bd3)
-Download action repository 'actions/upload-artifact@v2' (SHA:27121b0bdffd731efa15d66772be8dc71245d074)
+Download action repository 'actions/upload-artifact@v2' (SHA:da838ae9595ac94171fa2d4de5a2f117b3e7ac32) |
UPD Looks like this is caused by the recent release. Reverted action to 27121b0 (v2.2.4), and it stopped failing. Run: https://github.com/skyrim-multiplayer/skymp/runs/4490672804?check_suite_focus=true See PR: skyrim-multiplayer/skymp#630 |
Thanks @nic11! Reverting to v2.2.4 worked for me too. |
Thanks @nic11! |
Turns out there was a separate issue for this, though I googled this one :) Fixed in #281 |
I had this problem and the solution for me was to introduce a period of waiting.
The code was correct and worked prior to the introduction to docker. |
V4 upload-artifact has released today! Recommend switching over. https://github.blog/changelog/2023-12-14-github-actions-artifacts-v4-is-now-generally-available/ v4 is a complete rewrite of the artifact actions with a new backend. v1-v3 uploads sometimes would hit 100% or close to 100% and things would just stop and fail due to mysterious reasons. Sometimes there would also be a small amount of transient errors like 500s or 400s that you see. v4 is all around more reliable, simpler and a host of issues described in this issue should no longer happen. If there are any similar issues with v4 then please open up new issues |
Describe the bug
Our ci systems sometimes returns HTTP 440 when using upload-artifact.
Version
Environment
Screenshots
If applicable, add screenshots to help explain your problem.
Run/Repo Url
Tried to reproduce our setup in jimvandervoort/gh-actions-error. No luck so far.
How to reproduce
Not sure yet, our setup looks like this:
We build multiple themes from our frontend. These themes may or may not produce some of the same files across builds (since some themes only add files like new image resoruces, while others modify JS, causing a different webpack bundle to be created).
We build multiple themes in a matrix job.
Assets are all build under
public/theme-name/dist/js/app/.[hash].js
.The ci uploads all js and css files in one folder:
dist/js/app.[hash].js
, removing the name of the theme from the path. The idea here is that if two themes build the same file, only one is included (since the hash of the file is in the filename).Additional context
Error reported in run (I replaced the name of a specific directory with
some-theme
since the original name included the name of a private customer):The text was updated successfully, but these errors were encountered: