Code Monkey home page Code Monkey logo

Comments (27)

alexei-28 avatar alexei-28 commented on August 27, 2024 8

sdk update.

Now, it's work. Thanks

from sdkman-cli.

schallerala avatar schallerala commented on August 27, 2024 6

In some cases, it might help a few people to enable the offline mode of sdkman to allow using an already installed candidate.
Small thing that might come in handy in the time being.

from sdkman-cli.

luongvo avatar luongvo commented on August 27, 2024 1

Same here, we just got the issue today.

All done!


You are subscribed to the STABLE channel.

Please open a new terminal, or run the following in the existing one:

    source "/home/runner/.sdkman/bin/sdkman-init.sh"

Then issue the following command:

    sdk help

Enjoy!!!
==== BROADCAST =================================================================
* 2023-02-13: grails 5.2.6 available on SDKMAN!
* 2023-02-13: gradle 8.0 available on SDKMAN!
* 2023-02-12: skeletal 0.15.0 available on SDKMAN! https://github.com/cbmarcum/skeletal/releases/tag/v0.15.0
================================================================================

Stop! kotlin is not a valid candidate.
Error: Process completed with exit code 1.

from sdkman-cli.

ptschack avatar ptschack commented on August 27, 2024 1

This problem is currently present on systems which I maintain:

$ sdk version

SDKMAN!
script: 5.16.1
native: 0.1.0
$ sdk list java

Stop! java is not a valid candidate.
$ sdk list

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.19.10</center>
</body>
</html>

Cause seems to be that https://api.sdkman.io/2/candidates/list/ is not reachable:

$ curl -i https://api.sdkman.io/2/candidates/list/
HTTP/1.1 200 Connection established       # this is the proxy

HTTP/1.1 504 Gateway Time-out
Date: Tue, 14 Feb 2023 09:58:23 GMT
Server: nginx/1.19.10
Connection: Keep-Alive
Content-Type: text/html
Content-Length: 168

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.19.10</center>
</body>
</html>

from sdkman-cli.

manish2aug avatar manish2aug commented on August 27, 2024 1

If debug logging is enabled in the config, it can be seen on even startup of the terminal that it cannot connect. Offline will only work if you already have the candidate in the cache

from sdkman-cli.

mley avatar mley commented on August 27, 2024 1

This is pretty frustrating. Offline mode also does not work for me.

$ sdk offline enable
Offline mode enabled.
$ sdk ls java

Stop! java is not a valid candidate.

Would it be possible to make basic usage possible without the usage of the API in the next version?

from sdkman-cli.

marc0der avatar marc0der commented on August 27, 2024 1

Hey @Tuubz, this was due to the initial rate-limiting that I imposed on the API. It was a bit aggressive at first, but I've relaxed it to 10 r/s per IP. Let me know on our community slack if you still see this issue.

from sdkman-cli.

marlowww avatar marlowww commented on August 27, 2024

Looks like API is down, same problem as #1169 (comment)

from sdkman-cli.

imyxiao avatar imyxiao commented on August 27, 2024

same

from sdkman-cli.

tplive avatar tplive commented on August 27, 2024

Looks like API is down, same problem as #1169 (comment)

It's been down for two weeks? 😱

from sdkman-cli.

marlowww avatar marlowww commented on August 27, 2024

Looks like API is down, same problem as #1169 (comment)

It's been down for two weeks? 😱

Nope, its probably different URL/endpoint than in old issue

from sdkman-cli.

andersenleo avatar andersenleo commented on August 27, 2024

Same here, fwiw..

from sdkman-cli.

UBessle avatar UBessle commented on August 27, 2024

Same here

from sdkman-cli.

Kaishley avatar Kaishley commented on August 27, 2024

Same here.

from sdkman-cli.

stranljip avatar stranljip commented on August 27, 2024

Parallel discussion in Slack: https://sdkman.slack.com/archives/CJTNQA94M/p1676359041313729

from sdkman-cli.

juliaBriadis avatar juliaBriadis commented on August 27, 2024

Experiencing same issue with grails. "Stop! grails is not a valid candidate." sdk list command gives back 504 Gateway Time-out.

from sdkman-cli.

talonx avatar talonx commented on August 27, 2024

Same issue with installing java and gradle.

from sdkman-cli.

Glecun avatar Glecun commented on August 27, 2024

Same issue, sdk list java returns me 504

from sdkman-cli.

marttp avatar marttp commented on August 27, 2024

Same issues, I thought I have faced this from my end.
After updating to 5.16.1, I faced the same problem with sdk list java

<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx/1.19.10</center>
</body>
</html>

Actually, before I updated to 5.16.1, my previous version is 5.16.0 and still able to use sdk list java

from sdkman-cli.

manish2aug avatar manish2aug commented on August 27, 2024

It seems that the beta channel is also not working https://beta.sdkman.io/2 giving 404

from sdkman-cli.

alexei-28 avatar alexei-28 commented on August 27, 2024

I also has this problem:

Linux Mint 20.3

SDKMAN!
script: 5.16.1
native: 0.1.0

In terminal I try simple command:

sdk list java
but get error

Stop! java is not a valid candidate.

This also not working:

sdk install java

Stop! java is not a valid candidate.

How can I fix this error?

P.S. this not help

sdk flush candidates

from sdkman-cli.

gcwiak avatar gcwiak commented on August 27, 2024

Same for me.
SDKMAN 5.16.1., sdk list java results in 504.

from sdkman-cli.

ingo-1492 avatar ingo-1492 commented on August 27, 2024

same here, SDKMAN 5.16.1., sdk list java results in "Stop! java is not a valid candidate."

from sdkman-cli.

vanta avatar vanta commented on August 27, 2024

Works for me now.

from sdkman-cli.

marc0der avatar marc0der commented on August 27, 2024

The candidates service went down but has now been restored.

from sdkman-cli.

toby-thanathip avatar toby-thanathip commented on August 27, 2024

@marc0der It's returning a different error response now:

<head><title>503 Service Temporarily Unavailable</title></head>

Reference: https://github.com/nimblehq/android-templates/actions/runs/4172007998/jobs/7243910588

from sdkman-cli.

tplive avatar tplive commented on August 27, 2024

I guess it's not completely solved, I get the same when trying to use SDKMAN today...

from sdkman-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.