graalvm / setup-graalvm

GitHub Action for setting up GraalVM distributions.
https://www.graalvm.org
Universal Permissive License v1.0
197 stars 28 forks source link

Internal error occurred: A JSONObject text must begin with '{' at 1 [character 2 line 1] #106

Closed yegor256 closed 2 months ago

yegor256 commented 2 months ago

This is my config:

      - uses: graalvm/setup-graalvm@v1
        with:
          distribution: 'graalvm'
          java-version: '21'
          components: 'native-image'
          github-token: ${{ secrets.GITHUB_TOKEN }}

I'm getting this:

Run graalvm/setup-graalvm@v1.2.2
  with:
    version: 22.0.0.2
    java-version: 11
    components: native-image
    github-token: ***
    java-package: jdk
    set-java-home: true
    check-for-updates: true
    native-image-musl: false
    native-image-job-reports: false
    native-image-pr-reports: false
  env:
    pythonLocation: /opt/hostedtoolcache/Python/[3](https://github.com/yegor256/fibonacci/actions/runs/10987531188/job/30502512527#step:14:3).12.6/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.12.6/x6[4](https://github.com/yegor256/fibonacci/actions/runs/10987531188/job/30502512527#step:14:4)/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.6/x64
    Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.6/x64
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.12.6/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.12.6/x64/lib
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /home/runner/work/_temp/4d3b8[5](https://github.com/yegor256/fibonacci/actions/runs/10987531188/job/30502512527#step:14:5)6f-b54b-4f90-964c-5d31e98137ab -f /home/runner/work/_temp/2a92534c-1343-48d3-91af-82cdd4cdb012
Adding graalvm-ce-java11-linux 22.0.0.2 to tool-cache ...
/opt/hostedtoolcache/graalvm-ce-java11-linux/22.0.0-2/x[6](https://github.com/yegor256/fibonacci/actions/runs/10987531188/job/30502512527#step:14:6)4/graalvm-ce-java11-22.0.0.2/bin/gu --non-interactive install --no-progress native-image
Downloading: Release index file from oca.opensource.oracle.com
Internal error occurred: A JSONObject text must begin with '{' at 1 [character 2 line 1]
Error: The process '/opt/hostedtoolcache/graalvm-ce-java[11](https://github.com/yegor256/fibonacci/actions/runs/10987531188/job/30502512527#step:14:11)-linux/22.0.0-2/x64/graalvm-ce-java11-22.0.0.2/bin/gu' failed with exit code 3

Full log is here: https://github.com/yegor256/fibonacci/actions/runs/10987531188/job/30502512527

fniephaus commented 2 months ago

Hi @yegor256, the version you tried to use talks to a service that has been retired some time ago. GraalVM CE for JDK 11 is actually no longer supported, and we recommend you upgrade, but if you really want to use it, try 22.3.3 instead of 22.0.0.2.