v.21.9Improvement

Send Error Response for HTTP Requests to TCP Port Without HTTP Port Set

Send response with error message if HTTP port is not set and user tries to send HTTP request to TCP port. #27385 (Braulio Valdivielso Martínez).
ClickHouse now sends a clear error response when an HTTP request is made to the TCP port if the HTTP port is not configured.

Why it matters

This feature helps users diagnose configuration errors by providing an explicit error message when an HTTP request is sent to the TCP port without the HTTP port being set. It prevents confusion caused by silent failures or ambiguous connection errors.

How to use it

Ensure that the HTTP port is configured in ClickHouse settings. If the HTTP port is not set, users will receive an error message when they mistakenly send HTTP requests to the TCP port, improving troubleshooting.