Turborepo WARNING artifact verification failed 401 Unauthorized with remote cache

After updating turbo from 1.10.16 to 1.11.0, every turbo command prints "WARNING artifact verification failed: Error making HTTP request: HTTP status client error (401 Unauthorized)". The reporter used a self-hosted remote cache with TURBOTOKEN set in the root .env file, and it had worked without warnings before the update. Another reporter found the same warning is reliably triggered when a remoteCache section is configured in turbo.json, in which case the TURBOTOKEN env variable appears to be ignored.

Regenerate your token and make sure its scope covers the team that owns the remote cache; the original reporter fixed the warning by creating a new Vercel token with the correct team scope. If you set a remoteCache section in turbo.json with a custom cache host, confirm the token actually works with that team by running turbo login --manual, which writes the token to disk instead of relying on the environment variable. The Turborepo team also improved the error messages for this path in PR #12314, so upgrading past that change gives a clearer diagnosis than the bare 401 warning.

Source: https://github.com/vercel/turborepo/issues/6765

Source: https://github.com/vercel/turborepo/issues/6765