CouchDB
  1. CouchDB
  2. COUCHDB-1053

missing_named_view for reduce fxns that compile but throw runtime errors

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: JavaScript View Server
    • Labels:
      None
    • Environment:

      OSX, prebuilt

    • Skill Level:
      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!

        Activity

          People

          • Assignee:
            Joan Touzet
            Reporter:
            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

                Development