-
Hi, I am new to benthos and I have been stuck with this error for several days, please help me. I have tried to connect benthos to clickhouse database and insert some string to the database but kept receiving this error "Failed to send message to sql_insert: [handshake] unexpected packet [72] from server" I am using docker-compose to setup the clickhouse server and benthos. This is my docker-compose.yml file:
My benthos file:
Finally, I use postman to send POST request to the http_server some raw JSON like {"key": "123"} This is my log file:
Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hey @khuefgorg, sorry for the late reply! My best guess is that the issue is related to your Clickhouse security settings. Since you haven't shared the config you're volume mounting into your Clickhouse container, I can't tell for sure what the issue is and not sure how to reproduce it. However, looking at the DSN you have in there ( |
Beta Was this translation helpful? Give feedback.
-
Also I found this: ClickHouse/clickhouse-go#298, you need to be using the tcp endpoints rather than http. |
Beta Was this translation helpful? Give feedback.
Also I found this: ClickHouse/clickhouse-go#298, you need to be using the tcp endpoints rather than http.