Skip to content
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

Unable connect to Confluent Cloud instance #218

Open
akhoruzhenko opened this issue Feb 18, 2022 · 6 comments
Open

Unable connect to Confluent Cloud instance #218

akhoruzhenko opened this issue Feb 18, 2022 · 6 comments

Comments

@akhoruzhenko
Copy link

Unable connect to Confluent Cloud instance. Always receive "Failed operation - Closed connection" error message.

How I can use plugin with Confluent instance if it supported by plugin?

Thanks

@angelozerr
Copy link
Collaborator

To be honnest with you. I dont know. Vscode kafka consumer kafkajs to connect to kafka. It seems some users can connect to confluent with kafkajs. I suggest that you see issues with confluent in kafkajs github https://github.com/tulios/kafkajs/search?q=confluent&type=issues

If it misses something in vscode kafka with kafkajs config dont hesitate to give us feedback.

Thanks

@ubunatic
Copy link

I have the same issue when using protocol SASL_SSL + mechanism PLAIN, for which you do not need any PEM files.

This mode works with kafkacat but not in VSCode.

kcat -L -b "$ADDR" -X security.protocol=SASL_SSL -X sasl.mechanisms=PLAIN \
        -X sasl.username="$USERNAME" -X sasl.password="$PASSWORD"

The kafkajs docs say to use ssl: true instead of specifying the files there.

Use ssl: true if you don't have any extra configurations and want to enable SSL.

Could this be the issue?

@angelozerr
Copy link
Collaborator

Have you tried? You can select SSL only with the wizard.

@JDubbTX
Copy link

JDubbTX commented Mar 30, 2022

I'm also having this issue. I've tried with SSL selected:
image

@angelozerr
Copy link
Collaborator

angelozerr commented May 25, 2022

I have tried to connect toa Confluent Cloud instance and it's works for me. The only thing that I have noticed is that I had to:

  • wait some time after creating the cluster in Confluent Cloud
  • I had to close and restart my vscode after creating the cluster setting in vscode-kafka (but not sure for that) (with or without selected SSL it is working)

And now I can see brokers:

image

@linwoodma
Copy link

I had the same problem and closing the app after editing the config, then reopening seems to have fixed my problem also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants