Skip to content

Improve misleading TLS misconfiguration error messages #116

Description

@amunra

Overview

When sniffing the protocol version as part of c-questdb-client v.3.0.0, if TLS is misconfigured it's reported as "Could not detect server's line protocol version". While technically correct, this is misleading as it obfuscates the core issue.

These are two specific usability reports on where we can be clearer:

Issue 1 - Connecting to HTTPS server as HTTP

When using latest client (python) if I am sending to a https host but I mistakenly pass http, the error message is misleading

questdb.ingress.IngressError: Could not detect server's line protocol version, settings url: http://localhost:9000/settings, status code: 400 Bad Request.

Issue 2 - Bad credentials

and when https but self signed cert

questdb.ingress.IngressError: Could not detect server's line protocol version, settings url: https://localhost:9000/settings, err: io: invalid peer certificate: Other(OtherError(UnsupportedCertVersion)).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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