Skip to content

Action fails with "Error: Cache service responded with 400" #902

Description

@fransf-wtax

Description:
Action fails with "Error: Cache service responded with 400"

Task version:
actions/setup-java@v2

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:
Workflow step:

      - name: Set up JDK
        uses: actions/setup-java@v2
        with:
          distribution: zulu
          java-version: 17
          cache: maven

Expected behavior:
JDK is set up and Maven settings.xml file created

Actual behavior:

Trying to resolve the latest version from remote
Resolved latest version as 17.0.16+8
Trying to download...
Downloading Java 17.0.16+8 (Zulu) from https://cdn.azul.com/zulu/bin/zulu17.60.17-ca-crac-jdk17.0.16-linux_x64.tar.gz ...
Extracting Java archive...
/usr/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/f121cbd2-025a-4a44-939f-4203a093e9f8 -f /home/runner/work/_temp/b22869b4-9e65-4be0-8851-02fe0e9cc8a4
Java 17.0.16+8 was downloaded
Setting Java 17.0.16+8 as the default

Java configuration:
  Distribution: zulu
  Version: 17.0.16+8
  Path: /opt/hostedtoolcache/Java_Zulu_jdk/17.0.16-8/x64

Creating settings.xml with server-id: github
Writing to /home/runner/.m2/settings.xml
Error: Cache service responded with 400

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions