Comments (7)
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.
Will analyze and let you know.
from digitalocean-api-java.
Alright, thanks!
from digitalocean-api-java.
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.
@adpande DigitalOcean has v2 API active as of now. v1 is already sunsetted.
from digitalocean-api-java.
@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.
Closing it for v2.5 release.
from digitalocean-api-java.
Related Issues (20)
- line: certificate.getType() != "lets_encrypt" HOT 1
- Error "mismatch between number of fingerprints and the returned ssh keys" when creating droplet
- Travis CI Error
- Library upgrades, minimum JDK1.8 is required, deprecation removal, etc
- Add support for Project resources /v2/projects/*/resources
- Error: please complete this security check HOT 2
- Change Droplet Tags attribute HOT 1
- Mine
- Add support for https://developers.digitalocean.com/documentation/spaces/
- Wrong SnapshotId type for Volume Snapshots
- Tags can only be one word HOT 1
- getDropletInfo() does not return the assigned key(s)
- The getAvailableSizes cause JsonSyntaxException
- The getAllVolumeSnapshots() returns always null
- add support for spaces
- Volume.size Double or Integer? HOT 3
- Add support for new /v2/projects/* HOT 3
- Add support for new /v2/kubernetes/clusters
- Add support for managed /v2/databases HOT 6
- Require constructor parameters to avoid temporal coupling HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digitalocean-api-java.