Skip to content

Fix wrong port number in error message for TLS native protocol port - #96881

Merged
alexey-milovidov merged 3 commits into
masterfrom
fix-wrong-port-in-http-error-message
Feb 15, 2026
Merged

alexey-milovidov merged 3 commits into
masterfrom
fix-wrong-port-in-http-error-message

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Feb 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • When an HTTP request hits the native TCP port, the error message now shows the correct port number for both secure (tcp_port_secure) and non-secure (tcp_port) connections
  • The suggested HTTP port is now https_port for TLS connections and http_port for plain connections
  • The error message now mentions the /play and /dashboard endpoints

Closes #43914

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Fix wrong port number in error message when accidentally connecting with HTTP to the TLS-enabled native protocol port.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

No documentation changes needed.

🤖 Generated with Claude Code

Version info

  • Merged into: 26.2.1.702

… native protocol port

When a user accidentally sends an HTTP request to the native TCP protocol
port, the server returns a helpful error message. This fixes two issues:

1. The message always showed port 9000 (`tcp_port`), even when the
   connection was on port 9440 (`tcp_port_secure`).
2. The message always suggested port 8123 (HTTP), even when the
   connection was over TLS, where port 8443 (`https_port`) is correct.

Also adds mentions of the `/play` and `/dashboard` endpoints.

Closes #43914

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@clickhouse-gh

clickhouse-gh Bot commented Feb 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [1a812bd]

Summary: ✅

@clickhouse-gh clickhouse-gh Bot added the pr-bugfix Pull request with bugfix, not backported by default label Feb 14, 2026
@alexey-milovidov alexey-milovidov self-assigned this Feb 15, 2026
@alexey-milovidov
alexey-milovidov merged commit b285ad5 into master Feb 15, 2026
131 checks passed
@alexey-milovidov
alexey-milovidov deleted the fix-wrong-port-in-http-error-message branch February 15, 2026 06:56
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Feb 15, 2026
@CheSema CheSema self-assigned this Mar 20, 2026
@CheSema CheSema added the post-approved Approved, but after the PR is merged. label Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

post-approved Approved, but after the PR is merged. pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A message about wrong port number can be wrong sometimes.

3 participants