所有地图视图上的 Couchdb 总和错误

Couchdb sum error on all map views

我的 cloudant 数据库运行良好,然后我开始在我的所有地图视图上收到 SUMERROR。大多数 map 函数都没有 reduce 函数。

{error: "invalid_value",…}
error: "invalid_value"
reason: "The _sum function requires that map values be numbers, arrays of numbers, or objects, not 'null'. Objects cannot be mixed with other data structures. Objects can be arbitrarily nested, provided that the values for all fields are themselves numbers, arrays of numbers, or objects."
ref: 2090670111

我不确定错误的原因是什么以及如何解决它。

您的地图函数为其中一个文档发出的值不是错误消息中列出的类型之一,您可能有一个文档作为您在地图函数中发出的字段的意外值。