gpt4 book ai didi

node.js - 无法访问 View

转载 作者:太空宇宙 更新时间:2023-11-03 22:16:49 25 4
gpt4 key购买 nike

这是我在管理控制台中的 View :

enter image description here这是我通过 API 调用它的代码:

var query = cb.view('_design/dev_user/', 'by_name');
console.log(query);
query.query(function(err, results) {
console.log(err);
});

这是输出:

{ _cb: { queryhosts: null, mchosts: '', srvhost: null, hosts: 'localhost:8091', _cb: { _handleRestResponse: [Function] }, connected: false }, ddoc: '_design/dev_user', name: 'by_name', q: {} }

{ [Error: REST error: bad_request] code: 4104, reason: 'attachments not supported in Couchbase' }

知道我做错了什么吗?

最佳答案

您必须发布 View 并查询生成的生产 View ,而不是开发 View 。

关于node.js - 无法访问 View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25068164/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com