Details
-
Question
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
I am using CouchDB 2.0.0 version.
I am trying to retrieve data from API's using java code.
The url when hit in the browser works fine, but does not show data in eclipse.
for eg., while using the following url:
http://<ip-address>/_node/couchdb@localhost/_stats
But I get the following exception while doing so:
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:802)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:663)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:799)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:663)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1335)