Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.1dp
    • Fix Version/s: 1.1dp2
    • Component/s: Core
    • Security Level: Public
    • Labels:
      None

      Description

      viewResponse return null, and i can't figure out why:

      • I execute my code
      CouchbaseClient c = new CouchbaseClient(baseURIs, "default", "");
      View view = c.getView("dev_lenders", "country_count");

      Query query = new Query();
      Stale stale=Stale.OK;
      query.setStale(stale);
      query.setGroup(true);
      ViewResponse viewResponse = c.query(view, query);

      • My viewRespons is null.

      • Checking the couchdb.1 log, I see:
      [couchdb:info] [2012-07-04 21:40:50] [ns_1@127.0.0.1:<0.24865.33>:couch_log:info:39] 10.32.5.29 - - GET /default/_design/dev_lenders/_view/country_count?group=true&stale=ok 200

      • Running this URL directly against my server I do get results:
      http://10.2.1.12:8092/default/_design/dev_lenders/_view/country_count?group=true&stale=ok
      {"rows":[

      {"key":null,"value":4171}

      ,

      {"key":"AE","value":5}

      ,

      {"key":"AF","value":1}

      ,

      {"key":"AM","value":2}

      ,
      ...

      Not sure what logs i can provide to debug this further. let me know how i can help.

      # Subject Project Status CR V
      For Gerrit Dashboard: &For+JCBC-72=message:JCBC-72

        Activity

        Hide
        sharon Sharon Barr (Inactive) added a comment -

        On slight variation from the above issue, i did mange to get an error from the server via the HTTP request

        {"error":"query_parse_error","reason":"Invalid URL parameter 'group' or 'group_level' for non-reduce view."}

        but the client still returns null.

        Show
        sharon Sharon Barr (Inactive) added a comment - On slight variation from the above issue, i did mange to get an error from the server via the HTTP request {"error":"query_parse_error","reason":"Invalid URL parameter 'group' or 'group_level' for non-reduce view."} but the client still returns null.
        Show
        mikew Mike Wiederhold added a comment - http://review.couchbase.org/#change,18094

          People

          • Assignee:
            mikew Mike Wiederhold
            Reporter:
            sharon Sharon Barr (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes