import numpy as np
import pandas as pd
import datetime as dt
import gspread
import clickhouse_connect
from oauth2client.service_account import ServiceAccountCredentials
client = clickhouse_connect.get_client(
host='clickhouse.prod.do.database',
port=8123,
username='default',
password='1234567')
DatabaseError: :HTTPDriver for http://clickhouse.prod.do.database:8123 returned response code 400
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.22.0 (Ubuntu)</center>
</body>
</html>
I expected to connect to clickhouse database, but this error accured. Also need to say, that's a new laptop and this code worked earlier.