Skip to content

Commit

Permalink
Merge pull request ClickHouse#790 from ClickHouse/kafka-http-sink-tro…
Browse files Browse the repository at this point in the history
…ubleshooting-quote

troubleshoot CANNOT_PARSE_QUOTED_STRING in http protocol
  • Loading branch information
Ryado authored Feb 17, 2023
2 parents 4ef8ebc + 8bd3fea commit 7ca41aa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ From the [Sink documentation](https://docs.confluent.io/kafka-connectors/http/cu
1. Verify your Kafka records have the same key.
2. When you add parameters to the HTTP API URL, each record can result in a unique URL. For this reason, batching is disabled when using additional URL parameters.

### 400 Bad Request
#### CANNOT_PARSE_QUOTED_STRING
If HTTP Sink fails with the following message when inserting a JSON object into a `String` column:
```
Code: 26. DB::ParsingException: Cannot parse JSON string: expected opening quote: (while reading the value of key key_name): While executing JSONEachRowRowInputFormat: (at row 1). (CANNOT_PARSE_QUOTED_STRING)
```

Set `input_format_json_read_objects_as_strings=1` setting in URL as encoded string `SETTINGS%20input_format_json_read_objects_as_strings%3D1`

## Load the GitHub dataset (optional)

Expand Down

0 comments on commit 7ca41aa

Please sign in to comment.