Skip to content

Commit 410adb3

Browse files
committed
Disabled Verify to avoid SSL checking
1 parent 3389ec8 commit 410adb3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clickhouse_mysql/writer/tbcsvwriter.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ def uploadCSV(self, table, filename, tries=1):
6969
'Authorization': 'Bearer ' + self.tb_token,
7070
'Content-Type': m.content_type
7171
},
72-
params=params)
72+
params=params,
73+
verify=False)
7374

7475
# logging.debug(response.text)
7576
logging.info(response.json())
@@ -81,7 +82,7 @@ def uploadCSV(self, table, filename, tries=1):
8182
logging.error(
8283
f"Too many requests retrying in {retry_after} seconds to upload {filename } to {table}")
8384
time.sleep(retry_after)
84-
self.uploadCSV(table, filename, tries+1)
85+
self.uploadCSV(table, filename, tries + 1)
8586
else:
8687
# In case of error let's retry only
8788
logging.exception(response.json())

0 commit comments

Comments
 (0)