curl -v 'http: --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 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}