Giter VIP home page Giter VIP logo

Comments (7)

maddie avatar maddie commented on July 18, 2024

Partial code:

System.out.println("Updating info for droplet: " + dropletId);
String authKey = "xxxxx";
DigitalOcean apiClient = getClient(authKey);
System.out.println("Got DO client");

Droplet droplet = apiClient.getDropletInfo(dropletId);
System.out.println("Got droplet info.");
DropletStatus status = droplet.getStatus();
System.out.println("Got droplet status.");
try {
    String ip = (droplet.getNetworks().getVersion4Networks().get(0).getIpAddress());
    System.out.println("Got droplet IP address.");
} catch (NullPointerException e) {
    System.out.println("IP Address not yet available for droplet " + dropletId);
}
System.out.println("Setting droplet status: " + statusStr);
save(droplet);
System.out.println("Updating droplet info to database.");

from digitalocean-api-java.

jeevatkm avatar jeevatkm commented on July 18, 2024

Will analyze and let you know.

from digitalocean-api-java.

maddie avatar maddie commented on July 18, 2024

Alright, thanks!

from digitalocean-api-java.

adpande avatar adpande commented on July 18, 2024

Hi @jeevatkm ,

We are also facing the same issue when client hangs in between. Here is the line on which it hangs:

apiClient = new DigitalOceanClient("v2", token);

It works with 2.0 but hangs for all the versions greater than that...

Thanks in advance for the help.

Regards,
Abhishek

from digitalocean-api-java.

jeevatkm avatar jeevatkm commented on July 18, 2024

@adpande DigitalOcean has v2 API active as of now. v1 is already sunsetted.

from digitalocean-api-java.

jeevatkm avatar jeevatkm commented on July 18, 2024

@maddie I couldn't reproduce at my end. I guess it is specific to your use case. Can you help me to reproduce it?

from digitalocean-api-java.

jeevatkm avatar jeevatkm commented on July 18, 2024

Closing it for v2.5 release.

from digitalocean-api-java.

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.