Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
1
Description
My cluster wrapper code has a cluster.buckets() call. When implementing it like this:
std::list<std::string>
|
cb::cluster::buckets()
|
{
|
couchbase::operations::bucket_get_all_request req;
|
auto barrier = std::make_shared<std::promise<couchbase::operations::bucket_get_all_response>>();
|
auto f = barrier->get_future();
|
cluster_->execute_http(req, [barrier](couchbase::operations::bucket_get_all_response&& resp) mutable { barrier->set_value(resp); });
|
auto resp = f.get();
|
if (resp.ctx.ec) {
|
throw std::runtime_error(resp.ctx.ec.message());
|
}
|
std::list<std::string> retval;
|
for( auto& b : resp.buckets) {
|
retval.push_back(b.name);
|
}
|
return retval;
|
}
|
I get a parsing_error as the error code's message (the value is 9), against a 7.0 cluster.
Attachments
Issue Links
- relates to
-
MB-48595 ns_server returns duplicated keys in JSON response
- Closed