-
Notifications
You must be signed in to change notification settings - Fork 273
Open
Description
Which feature your question relates to?
Using chproxy in a NodeJS application to run queries
Question details
I am looking for examples on using chproxy in my nodeJS application.
I am having trouble trying to query our clickhouse table via chproxy from a nodeJS (TS) server-side application:
This is how I form the client which passes the health check when I call .ping()
client = createClient({
url: getEnvVar("DB_URL"),
pathname: "play",
username: getEnvVar("DB_USERNAME"),
password: getEnvVar("DB_PASSWORD"),
})
When I try to query a table I always keep getting this error:
select * from DATABASE.TABLE LIMIT 2;
Error: There is no handle /play?query_id=c152ca33-ac4d-4288-810e-2577b45c9bfc
Use / or /ping for health checks.
Or /replicas_status for more sophisticated health checks.
Additional context/motivations
"@clickhouse/client": "^1.8.1",
The clickhouse version we are running is 24.3.5
Metadata
Metadata
Assignees
Labels
No labels