Skip to content

Error #41

@jhay06

Description

@jhay06

I can't get through after successfully connecting to couchbase server
then i try to query it always says LCB_ERROR_SOCKET_SHUTDOWN for query
and for keybases LCB_TIMEOUT

std::string statement = "SELECT * FROM car_profile.mobile_dev.branding;";
lcb_CMDQUERY *cmd= nullptr;
lcb_cmdquery_create(&cmd);
lcb_cmdquery_statement(cmd, statement.c_str(), statement.size());
lcb_cmdquery_callback(cmd, row_callback);
lcb_cmdquery_adhoc(cmd, true);
lcb_query(instance, nullptr, cmd);

qDebug() << "waiting";
lcb_wait(instance, LCB_WAIT_DEFAULT);
qDebug() << "done?";
lcb_cmdquery_destroy(cmd);

UPDATE:
i change my couchbase server from community to enterprise , but now i have an error still related on that query

LCB_ERR_PLANNING_FAILURE

what is that error ?
also , is community version doesn't support libcouchbase connection ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions