You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The Setup Node.js action fails with Error: Cache service responded with 422. This was not happening until today and now it happens on the three existing repos I tried, plus the new minimal repro linked below. Using cache: 'npm'. Full log:
Run actions/setup-node@v2
Found in cache @ /opt/hostedtoolcache/node/22.14.0/x64
/opt/hostedtoolcache/node/22.14.0/x64/bin/npm config get cache
/home/runner/.npm
Error: Cache service responded with 422
Action version:
v2
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Tools version:
node v22.14.0 on ubuntu locally, "22" in GitHub runner.
The error is occurring because setup-node@v2 relies on a deprecated version of @actions/cache. Upgrading to setup-node@v4 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-node@v4.
For what it's worth, it appears that something was fixed so that v2's cache failure doesn't fail the action, it just presumably doesn't use the cache. Still deprecated but seems to be working again.
Hi @bhaugeea,
Thank you for the update! The behavior you're seeing is likely due to a recent brownout event affecting actions/cache, which temporarily disrupted the deprecated cache service.
While actions/setup-node@v2 may continue to function for now, it relies on an outdated version of actions/cache, which is scheduled for permanent shutdown on April 15th.
To avoid any interruptions and ensure ongoing reliability, we strongly recommend migrating to actions/setup-node@v4, which is fully compatible with the updated and supported cache service.
If you encounter any challenges during the migration or need further assistance, please feel free to reach out.
Description:
The Setup Node.js action fails with
Error: Cache service responded with 422
. This was not happening until today and now it happens on the three existing repos I tried, plus the new minimal repro linked below. Usingcache: 'npm'
. Full log:Action version:
v2
Platform:
Runner type:
Tools version:
node v22.14.0 on ubuntu locally, "22" in GitHub runner.
Repro steps:
https://github.com/bhaugeea/tmp
Expected behavior:
Until now the CI job in the repro succeeded.
Actual behavior:
Node-setup errors on an npm cache interaction.
The text was updated successfully, but these errors were encountered: