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
Error parsing host address when executing queries #4668
Comments
I also ran into the same issue, but while using ksqlDB 0.7
Use of Confluent Cloud seems to be the common thread. |
Hi - Is there any work arounds? I don't use the cloud at all. I just spin a container of cp-ksql-server:5.4.1 and then connect with confluentinc/cp-ksql-cli I can create streams but if I ever try SELECT * FROM my_stream EMIT CHANGES; it gives error as above with the ksql container ID as the host. |
I sorted it by removing trailing slash from KSQL_LISTENERS. |
Yes, it works without the trailing slash there. Notably this page has some trailing slashes for KSQL_LISTENERS in the examples: https://github.com/confluentinc/ksql/blob/master/docs-md/operate-and-deploy/installation/install-ksqldb-with-docker.md |
Confirming that removing the trailing slash also worked here. @rodesai this was the issue I mentioned via Slack last week. Seems like a documentation bug rather than a technical one. |
Since the value for KSQL_LISTENERS looks like a URI I think it'd be good for developer experience that the parsing could handle a trailing slash. |
Looks like the fix didn't totally fix the issue - it fixed a similar issue |
Describe the bug
Running a push query in ksqldb v0.7.1 errors out with
Error parsing host address http://<docker network host address>:8088/. Expected format host:port.
Having had a quick look at the code, it looks like
StreamsConfig.APPLICATION_SERVER_CONFIG
has wrong format when executing the query.To Reproduce
.env
file inside the repo to configure Confluent Cloud connection:docker-compose up -d
docker-compose exec ksqldb-cli bash
LOG_DIR=. ksqldb http://ksql-server:8088
SELECT * FROM my_stream EMIT CHANGES;
Expected behavior
Expected the query
SELECT * FROM my_stream EMIT CHANGES;
to start running.Actual behaviour
The ksqlDB-cli outputs this error:
Error parsing host address http://<docker-compose_ksql-server_hostname>:8088/. Expected format host:port.
Stack trace in ksqldb-cli log:
Additional context
This used to work with v0.6.0.
There's a separate branch
local_kafka
in the demo repo where the querying works. So the issue seems to be related to the configuration necessary to use Confluent Cloud.The text was updated successfully, but these errors were encountered: