I'm trying to use this command curl on my linux server.
It's the same command generated by this lib.
curl 'http://****:8123?extremes=0&readonly=2&max_execution_time=2&enable_http_compression=0&database=pi_datasources' \ -H 'Host: ****:8123' \ -H 'User-Agent: smi2/PHPClickHouse/client' \ -H 'Expires: 0' \ -H 'Pragma: no-cache' \ -H 'X-ClickHouse-User: pi_lhg' \ -H 'X-ClickHouse-Key: ****' \ -H 'Content-Type: application/json, **text/javascript**; charset=utf-8' \ -H 'Accept: application/json, text/javascript, */*; q=0.01' \ -H 'Content-Length: 26' \ -d 'show databases FORMAT JSON' \ -v
Result
The query doesn't work and I have Operation timed out after x milliseconds with 0 bytes received
Now if I remove text/javascript I have no issue.
Same if I remove text/javascript inside Transport/CurlerRequest::parameters_json():532
Any idea ?
The issue is not for all my serveurs clickhouse. Only one with clickhouse version 23.10.3.5.
The lib is updated.
What the goal of text/javascript ?
Hello
How to reproduce
I'm trying to use this command curl on my linux server. It's the same command generated by this lib.
curl 'http://****:8123?extremes=0&readonly=2&max_execution_time=2&enable_http_compression=0&database=pi_datasources' \ -H 'Host: ****:8123' \ -H 'User-Agent: smi2/PHPClickHouse/client' \ -H 'Expires: 0' \ -H 'Pragma: no-cache' \ -H 'X-ClickHouse-User: pi_lhg' \ -H 'X-ClickHouse-Key: ****' \ -H 'Content-Type: application/json, **text/javascript**; charset=utf-8' \ -H 'Accept: application/json, text/javascript, */*; q=0.01' \ -H 'Content-Length: 26' \ -d 'show databases FORMAT JSON' \ -v
Result The query doesn't work and I have Operation timed out after x milliseconds with 0 bytes received Now if I remove text/javascript I have no issue. Same if I remove text/javascript inside Transport/CurlerRequest::parameters_json():532
Any idea ? The issue is not for all my serveurs clickhouse. Only one with clickhouse version 23.10.3.5. The lib is updated. What the goal of text/javascript ?