question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Invalid value "SASL_SSL" for configuration property "security.protocol"

See original GitHub issue

Environment Information

  • OS [e.g. Mac, Arch, Windows 10]: Fedora 31
  • Node Version [e.g. 8.2.1]: 12.16.3
  • NPM Version [e.g. 5.4.2]: 6.14.4
  • C++ Toolchain [e.g. Visual Studio, llvm, g++]: g++
  • node-rdkafka version [e.g. 2.3.3]: 2.9.0

Steps to Reproduce node kafka.js

node-rdkafka Configuration Settings

const kafka = require('node-rdkafka')

const USERNAME = <USERNAME>
const PASSWORD = <PASSWORD>

const kafkaConf = {
    "group.id": "cloudkarafka-example",
    "metadata.broker.list": <BROKER_LIST>,
    "socket.keepalive.enable": true,
    "security.protocol": "SASL_SSL",
    "sasl.mechanisms": "SCRAM-SHA-256",
    "sasl.username": USERNAME,
    "sasl.password": PASSWORD,
    "debug": "generic,broker,security"
};

const consumer = new kafka.KafkaConsumer(kafkaConf);

consumer.on("ready", arg => {
    console.log(`Consumer ${arg.name} ready`);
    consumer.subscribe(<SOME_TOPIC>);
    consumer.consume();
});

consumer.on('error', err => {
    console.log("Consumer Error: " + err);
});

Additional context

  this._client = new SubClientType(globalConf, topicConf);
                 ^

Error: Invalid value "SASL_SSL" for configuration property "security.protocol"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
Avielyo10commented, Jul 20, 2020

I reinstall the package and it’s working, thanks all

1reaction
ddhabak1commented, Jul 19, 2020

make sure you have openssl installed then set CPPFLAGS and LDFLAGS

example: CPPFLAGS=-I/usr/local/opt/openssl/include LDFLAGS=-L/usr/local/opt/openssl/lib npm install node-rdkafka@2.8.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid value "SASL_SSL" for configuration property "security ...
Description Hi, When trying to connect to kafka consumer using golang, getting below error : [ 2019_12_12_12:45:05 ] ----> Kafka Consumer ...
Read more >
Invalid value "sasl_ssl" for configuration property "security ...
It means you were missing some dependencies (SSL or SASL) when you installed/built node-rdkafka. On ubuntu make sure you have libsasl2-dev ...
Read more >
Configuring PLAIN - Confluent Documentation
Enable SASL/PLAIN and the security protocol for Control Center in the etc/confluent-control-center/control-center.properties file. confluent.controlcenter.
Read more >
rdkafka security protocol sasl error : r/rust - Reddit
Dear fellow friends, I dunno who to turn to. I can't for the life of me figure out this error: 'producer error: KafkaError...
Read more >
Kafka 3.3 Documentation
bin/kafka-server-start.sh config/kraft/server.properties ... Added a new Serde type Void to represent null keys or null values from input topic.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found