Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-3399

Data retrieving using API's.

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • HTTP Interface
    • 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)

      Attachments

        Activity

          People

            Unassigned Unassigned
            komal_tilekar Komal Tilekar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: