-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With additional(route) path parameter, ksqlDB CLI is failing to connect to ksql server #6358
Comments
any idea how to solve it? I'm having the same problem (my ksqldb server runs behind an ingress controller) |
Hi, seems the client should be refactored to support this. The code seems not complicatedtk provide a PR. Curious, why its not implemented yet, maybe there some hidden complexity behind this ? |
Not familiar with the code, but I assume it's just a random bug. |
I'm facing the same issue, but from what I understand the bug is not in the client, it's in the server - when you have it behind ingress you need to make it aware of the "/test/" part of url, but as far as i know there is no configuration parameter for passing this path. Or is there a one? I'm considering using nginx reverse proxy to work around this. a. adding "contextPath" parameter to server configuration to make it generate links and redirects correctly b. eliminating HTTP redirect which is now what welcomes you at root endpoint:
Why not returning the info here, instead of having separate /info path? |
This is an issue around how KsqlTarget is instantiated. Throughout initialization the full server name with path is present, but when the client is instantiated it only uses the host. I can create a PR for this and a test container can be found here boriscosic/ksqldb-cli. |
Describe the bug
CLI is failing to connect to ksqldb server if any additional(context/route) path parameter included in the url.
Scenario where additional "route" path parameter is used for ingress to take decision and forward the request to the specific service of a ksql cluster.
https://ksqldb-server:443/**route**/
To Reproduce
Steps to reproduce the behavior, include:
Expected behavior
ksqldb-cli should get connected to ksqldb-server successfully, Moreover which was working on ksqldb-cli version 0.7.1
Actual behaviour
CLI output
Error messages "Error: Couldn't connect to the KSQL server: Path not found. Path='/info'. Check your ksql http url to make sure you are connecting to a ksql server."
The text was updated successfully, but these errors were encountered: