jlandersen / vscode-kafka

Apache Kafka® extension for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable connect to Confluent Cloud instance

akhoruzhenko opened this issue · comments

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

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

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?

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

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

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

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