Skip to content

Instantly share code, notes, and snippets.

@mdb
Created October 4, 2012 20:00
Show Gist options
  • Save mdb/3836043 to your computer and use it in GitHub Desktop.
Save mdb/3836043 to your computer and use it in GitHub Desktop.
url: http://phlapi.com:5984/v1//phl_bike_network/all
params: {}
response.headers: { server: 'CouchDB/1.0.2 (Erlang OTP/R14B)',
date: 'Thu, 04 Oct 2012 19:51:50 GMT',
'content-type': 'text/plain;charset=utf-8',
'content-length': '1938',
'cache-control': 'must-revalidate' }
{ error: 'render_error',
reason: 'function raised error: (new TypeError("req.headers.Accept is undefined", "", 11)) \nstacktrac
e: ([object Object],[object Object])@:11\nrunList(function (head, req) {var row, out, sep = "\\n";if (re
q.headers.Accept.indexOf("application/json") != -1) {start({headers: {\'Content-Type\': "application/jso
n"}});} else {start({headers: {\'Content-Type\': "text/plain"}});}if ("callback" in req.query) {send(req
.query.callback + "(");}send("{\\"type\\": \\"FeatureCollection\\", \\"features\\":[");while ((row = get
Row())) {out = "{\\"type\\": \\"Feature\\", \\"geometry\\": " + JSON.stringify(row.value.geometry);delet
e row.value.geometry;out += ", \\"properties\\": " + JSON.stringify(row.value) + "}";send(sep + out);sep
= ",\\n";}send("]}");if ("callback" in req.query) {send(")");}},[object Object],[object Array])@/opt/co
uchbase-server/share/couchdb/server/main.js:951\n(function (head, req) {var row, out, sep = "\\n";if (re
q.headers.Accept.indexOf("application/json") != -1) {start({headers: {\'Content-Type\': "application/jso
n"}});} else {start({headers: {\'Content-Type\': "text/plain"}});}if ("callback" in req.query) {send(req
.query.callback + "(");}send("{\\"type\\": \\"FeatureCollection\\", \\"features\\":[");while ((row = get
Row())) {out = "{\\"type\\": \\"Feature\\", \\"geometry\\": " + JSON.stringify(row.value.geometry);delet
e row.value.geometry;out += ", \\"properties\\": " + JSON.stringify(row.value) + "}";send(sep + out);sep
= ",\\n";}send("]}");if ("callback" in req.query) {send(")");}},[object Object],[object Array])@/opt/co
uchbase-server/share/couchdb/server/main.js:996\n("_design/geo",[object Array],[object Array])@/opt/couc
hbase-server/share/couchdb/server/main.js:1414\n()@/opt/couchbase-server/share/couchdb/server/main.js:14
56\n@/opt/couchbase-server/share/couchdb/server/main.js:1467\n' }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment