-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Probably something wrong with expected JSON format.
How to reproduce:
Volumes volumes = new LocalDocker(Paths.get("/var/run/docker.sock").toFile()).volumes();
volumes.iterator();
Expected result:
Got the volumes iterator
Actual result:
javax.json.JsonException
Exception in thread "main" javax.json.JsonException: Cannot read JSON array, found JSON object
at org.glassfish.json.JsonReaderImpl.readArray(JsonReaderImpl.java:122)
at com.amihaiemil.docker.ReadJsonArray.handleResponse(ReadJsonArray.java:61)
at com.amihaiemil.docker.ReadJsonArray.handleResponse(ReadJsonArray.java:1)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140)
at com.amihaiemil.docker.HttpClientEnvelope.execute(HttpClientEnvelope.java:103)
at com.amihaiemil.docker.ResourcesIterator.<init>(ResourcesIterator.java:64)
at com.amihaiemil.docker.ListedVolumes.iterator(ListedVolumes.java:78)
at Main.main(Main.java:11)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working