Skip to content

Cache service responded with 422 #1085

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
2 of 5 tasks
carlosmiei opened this issue Apr 16, 2025 · 6 comments
Closed
2 of 5 tasks

Cache service responded with 422 #1085

carlosmiei opened this issue Apr 16, 2025 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@carlosmiei
Copy link

carlosmiei commented Apr 16, 2025

Description:
Hello guys :)

We have been using this action extensively in our repo: https://github.com/ccxt/ccxt/blob/master/.github/workflows/python.yml

but we constantly face this "Cache service responded with 422" as you can see in the image

build with this error: https://github.com/ccxt/ccxt/actions/runs/14494405787/job/40658967886?pr=25731

Image

Action version:
v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:

Python 3.1.11

Repro steps:
Check our public repo: https://github.com/ccxt/ccxt/blob/master/.github/workflows/python.yml

Expected behavior:
Python to be installed

Actual behavior:
422 error

Thanks for your work!

@carlosmiei carlosmiei added bug Something isn't working needs triage labels Apr 16, 2025
@rpmcginty
Copy link

We are also seeing this error in our workflows:

Run actions/setup-python@v2
  with:
    python-version: 3.11
    cache: pip
    token: ***
  env:
    PYTHON_VERSION: 3.11
Successfully setup CPython (3.11.12)
/opt/hostedtoolcache/Python/3.11.12/x64/bin/pip cache dir
/home/runner/.cache/pip
Error: Cache service responded with 422

@jwchae8
Copy link

jwchae8 commented Apr 17, 2025

I also faced the same issue while using actions/setup-python@v3.
I could solve it by upgrading setup-python version. It was resolved after using actions/setup-python@v5.
From comments in the similar issue in setup-node, looks like old versions are depending on deprecated package.
setup-node issue
I believe your issue can also be resolved by bumping up.

@priya-kinthali
Copy link
Contributor

Hello👋, thanks for reporting this issue!

The error is occurring because setup-python@v2 relies on a deprecated version of @actions/cache. Upgrading to setup-python@v5 should resolve this issue, as it uses the updated version of the cache service.

To fix this and prevent any further caching problems, please update your workflows to use actions/setup-python@v5.

For more details, you can refer to the discussion here: actions/toolkit#1890.

Feel free to reach out if you need further assistance or clarification!

@rpmcginty
Copy link

great thanks for the explanation! upgrading to actions/setup-python@v5 resolved the issue.

@carlosmiei
Copy link
Author

@priya-kinthali Thanks for the clarification, will try that out.

@carlosmiei
Copy link
Author

Upgrading to v5, fixed it 🥳

jftsang added a commit to YijieYin/connectome_interpreter that referenced this issue Apr 21, 2025
Per actions/setup-python#1085
Should resolve the recent build failures
jftsang added a commit to YijieYin/connectome_interpreter that referenced this issue Apr 21, 2025
Per actions/setup-python#1085
Should resolve the recent build failures

Test plan: CI should pass
niwis added a commit to pulp-platform/cheshire that referenced this issue Apr 23, 2025
v2 is broken, see actions/setup-python#1085.

Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
paulsc96 pushed a commit to pulp-platform/cheshire that referenced this issue Apr 23, 2025
v2 is broken, see actions/setup-python#1085.

Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
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

4 participants