Are you using version 0.9 or before? If you're up to date, you should know the API has changed:
http://wiki.apache.org/couchdb/Formatting_with_Show_and_List#Listing_Views_with_CouchDB_0.10_and_later The signature of a list function is now "function (head,req)" (with rows obtained by using getRow() to iterate in a single function call), so the third argument in your function will be undefined. Switch to the new idiom and all will be well. On Mon, Mar 28, 2011 at 9:11 AM, bryan rasmussen <[email protected]>wrote: > why does the following: > function(head, row, req, row_info) { > send(typeof req); > > } > > return undefined for req? I thought req was supposed to give access to > the request object. If it doesn't is there any particular set of > functions in couchdb that allow you to analyze the request? > > Thanks, > Bryan Rasmussen >
