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

Request fails when using _changes?feed=eventsource&heartbeat=30000

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.1.0
    • HTTP Interface
    • None

    Description

      curl -v 'http://localhost:5984/irc/_changes?feed=eventsource&heartbeat=30000&since=now'  --raw
      *   Trying 127.0.0.1...
      * TCP_NODELAY set
      * Connected to localhost (127.0.0.1) port 5984 (#0)
      > GET /irc/_changes?feed=eventsource&heartbeat=30000&since=now HTTP/1.1
      > Host: localhost:5984
      > User-Agent: curl/7.50.3
      > Accept: */*
      > 
      < Cache-Control: no-cache
      < Content-Type: text/event-stream
      < Date: Tue, 27 Sep 2016 22:49:22 GMT
      < Server: CouchDB/2.0.0 (Erlang OTP/19)
      < Transfer-Encoding: chunked
      < X-Couch-Request-ID: e171a23c6b
      < X-CouchDB-Body-Time: 0
      < 
      19
      event: heartbeat
      data: 
      
      
      HTTP/1.1 500 Internal Server Error
      Cache-Control: must-revalidate
      Content-Length: 2473
      Content-Type: application/json
      Date: Tue, 27 Sep 2016 22:49:22 GMT
      Server: CouchDB/2.0.0 (Erlang OTP/19)
      X-Couch-Request-ID: e171a23c6b
      X-Couch-Stack-Hash: 3733362800
      X-CouchDB-Body-Time: 0
      
      {"error":"badmatch","reason":"{\"eventsource\",\n {delayed_resp,#Fun<chttpd.1.133065084>,\n     {httpd,\n         {mochiweb_request,\n             [#Port<0.36671>,\n              [{recbuf,8192}],\n              'GET',\n              \"/irc/_changes?feed=eventsource&heartbeat=30000&since=now\",\n              {1,1},\n              {3,\n               {\"host\",\n                {'Host',\"localhost:5984\"},\n                {\"accept\",{'Accept',\"*/*\"},nil,nil},\n                {\"user-agent\",{'User-Agent',\"curl/7.50.3\"},nil,nil}}}]},\n         \"127.0.0.1\",'GET',\n         [<<\"irc\">>,<<\"_changes?feed=eventsource&heartbeat=30000&since=now\">>],\n         [<<\"irc\">>,<<\"_changes\">>],\n         undefined,\n         {user_ctx,null,[],undefined},\n         undefined,undefined,undefined,undefined,undefined,\n         [{<<\"cookie\">>,#Fun<chttpd_auth.cookie_authentication_handler.1>},\n          {<<\"default\">>,#Fun<chttpd_auth.default_authentication_handler.1>},\n          #Fun<chttpd_auth.party_mode_handler.1>],\n         undefined,chttpd_auth_cache,\n         {1475,16532,891220},\n         'GET',\"e171a23c6b\",undefined,undefined},\n     200,\n     [{\"Content-Type\",\"text/event-stream\"},{\"Cache-Control\",\"no-cache\"}],\n     [],\n     {mochiweb_response,\n         [{mochiweb_request,\n              [#Port<0.36671>,\n               [{recbuf,8192}],\n               'GET',\n               \"/irc/_changes?feed=eventsource&heartbeat=30000&since=now\",\n               {1,1},\n               {3,\n                {\"host\",\n                 {'Host',\"localhost:5984\"},\n                 {\"accept\",{'Accept',\"*/*\"},nil,nil},\n                 {\"user-agent\",{'User-Agent',\"curl/7.50.3\"},nil,nil}}}]},\n          200,\n          {7,\n           {\"cache-control\",\n            {\"Cache-Control\",\"no-cache\"},\n            nil,\n            {\"content-type\",\n             {\"Content-Type\",\"text/event-stream\"},\n             nil,\n             {\"x-couch-request-id\",\n              {\"X-Couch-Request-ID\",\"e171a23c6b\"},\n              {\"server\",\n               {\"Server\",\"CouchDB/2.0.0 (Erlang OTP/19)\"},\n               {\"date\",{\"Date\",\"Tue, 27 Sep 2016 22:49:22 GMT\"},nil,nil},\n               {\"transfer-encoding\",{\"Transfer-Encoding\",\"chunked\"},nil,nil}},\n              {\"x-couchdb-body-time\",\n               {\"X-CouchDB-Body-Time\",\"0\"},\n               nil,nil}}}}}]}}}","ref":3733362800}
      
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              gdamjan Damjan Georgievski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: