-
Notifications
You must be signed in to change notification settings - Fork 73
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 trying to connect to kafka broker in confluent cloud "failed to dial: failed to open connection to <broker>.us-west-2.aws.confluent.cloud:9092 ... i/o timeout" #168
Comments
Hey @Dwisf, Please use SASL_MECHANISMS constants. Also try to set TLS config on the connection. |
Thanks @mostafa I updated it to the following, and still with the same issue. I have the same config with our java-based application, which has no problem connecting btw. Am I still missing something here (compared with the config in java app below)?
Here is the config on the java side:
|
I'm still having the issue connecting to confluent. Any help and assistance will be appreciated. |
@Dwisf
|
@Dwisf Have you managed to make this work? |
@mostafa thanks for checking in. I still can't successfully connect.
Output:
Do you think there is an issue with how I installed the extension? Is there a way to confirm that I have the correct installation? |
@Dwisf |
@mostafa - thank you for your response. I produce messages using different tool / script btw. setting connectLogger produces the following output, seems to be the same issue:
I did this to install the extension:
and run k6 as follows:
|
@Dwisf |
Thank you @mostafa - interesting that the timeout value (default to 10s) can be the issue. I'm looking forward to the fix being available. I wonder how I would incorporate the fix when it is available - do you have to patch xk6-kafka first? |
For that, I need to update the dependency and make a new release., which I'll do quickly. You can also test the changes locally using the replace directive in |
@mostafa - unfortunately, looks like it's still not working. I wonder if someone else has the same problem that I'm facing currently, trying to connect to confluent cloud. I cloned the kafka-go and xk6-kafka to my local, and built them (replacing reference to kafka-go, in go.mod, with the cloned)
then use the built k6 to run the script. Results:
|
@Dwisf |
@Dwisf |
@mostafa const address = "localhost:9092"; const connection = new Connection({ const results = connection.listTopics(); export default function () { export function teardown(data) { |
Hey @Madhankumar11, I won't be debugging your script and issues that are not directly related to this project. The scripts work perfectly fine, which means that you should spend more time debugging what you wrote, rather than posting them here to be resolved. |
Hi,
Hopefully this is an obvious issue but I could not figure this out. I get the following error when trying to connect to a kafka broker running in confluent cloud:
ERRO[0010] Failed to create dialer., OriginalError: %!w(*fmt.wrapError=&{failed to dial: failed to open connection to xxx.us-west-2.aws.confluent.cloud:9092: dial tcp: lookup xxx.us-west-2.aws.confluent.cloud: i/o timeout 0xc0018b5ea0}) error="Failed to create dialer., OriginalError: %!w(*fmt.wrapError=&{failed to dial: failed to open connection to xxx.us-west-2.aws.confluent.cloud:9092: dial tcp: lookup xxx.us-west-2.aws.confluent.cloud: i/o timeout 0xc0018b5ea0})"
Here is my simple script (at this point I simply want to make a connection).
Much appreciated.
The text was updated successfully, but these errors were encountered: