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

missing_named_view for reduce fxns that compile but throw runtime errors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.3
    • JavaScript View Server
    • None
    • OSX, prebuilt

    • New Contributors Level (Easy)

    Description

      Attempting to query a map-only view with reduce=false yields the same error message as (1) a view that is undefined and (2) a view that has a defined, compile-time valid, but run-time invalid reduce function. So if your reduce function throws a TypeError, you get this cryptic error (cryptic b/c so many problems yield the same error) instead of an error to that effect. Errors do show up in the log, and this is what the view gives:

      {"error":"not_found","reason":"missing_named_view"}

      Might be fixed in 1.0.2 but I cant use the built-in updater anymore after corporate firewall changes!

      Attachments

        Activity

          People

            wohali Joan Touzet
            ryan_richt Ryan Richt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified