Open DKGH opened 1 week ago
please show you simple code @DKGH
It is a modified version of tests/simple/main.cpp from the GitHub codebase:
int main() {
try {
const auto localhost = ClientOptions().SetHost("hostname").SetPort(8080).SetUser("user").SetPassword("password");
Client client(localhost);
} catch (const ProtocolError & e) {
cout << e.what();
} catch (const std:: exception& e) {
cout << e.what();
}
return 0;
}
I am getting the error mentioned in the subject line while trying to connect to a clickhouse server using host, port, username, and password. How can I get more details about why this error happened?