我正在使用 Couchbase 服务器 HTTP API 来创建存储桶。
当我向以下位置发出 POST 请求时:
http://localhost:8091/pools/default/buckets?name=Test&proxyPort=12259&ramQuotaMB=200&authType=sasl&replicaNumber=1&saslPassword=123456
它返回:
"errors": {
"authType": "invalid authType"
}
我已经设置了授权和内容类型 header ,但仍然没有运气。我用的是2.5.1。我在这里错过了什么? Couchbase 文档没有提及任何有关不正确的 authType 的信息
最佳答案
是否可以在 11211 以外的端口上创建经过 sasl 验证的存储桶?
SASL authenticating Couchbase buckets may only be placed on port 11211 and each bucket is differentiated by its name and password. SASL bucket may not be placed on any other port beside 11211. These buckets can be reached with either a vBucket aware smart client or a binary client that has SASL support. These buckets cannot be reached with ASCII clients.
引用:http://docs.pub.couchbase.com/couchbase-manual-2.5/cb-admin/
关于couchbase - 无法创建 Couchbase 存储桶 - authType 无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32461107/