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

Calling .consume() is not required in streaming mode. #229

Open
BufferUnderrunOK opened this issue Aug 23, 2022 · 0 comments
Open

Calling .consume() is not required in streaming mode. #229

BufferUnderrunOK opened this issue Aug 23, 2022 · 0 comments

Comments

@BufferUnderrunOK
Copy link

Having the same issue as #91

Error:

[Nest] 56257  - 08/23/2022, 11:34:17 AM   ERROR Error: Calling .consume() is not required in streaming mode.
    at NConsumer.consume (/home/barrett/projects/kstream-poc/node_modules/.pnpm/sinek@9.0.0/node_modules/sinek/lib/librdkafka/NConsumer.js:502:29)
    at /home/barrett/projects/kstream-poc/node_modules/.pnpm/kafka-streams@5.0.0/node_modules/kafka-streams/lib/client/NativeKafkaClient.js:115:42

config:

const kafkaStreamsOptions: KafkaStreamsConfig = {
  kafkaHost: KAFKA_CONFIG.brokers[0],
  clientName: 'tsstreams',
  options: {
    fromOffset: 'earliest',
  },
  noptions: {
    // needs node-rdkafka installed
    'group.id': 'currently-irrelevant',
    'metadata.broker.list': `${KAFKA_CONFIG.brokers}`,
    'security.protocol': 'sasl_plaintext',
    'sasl.mechanisms': KAFKA_CONFIG.sasl.mechanism.toUpperCase(),
    'sasl.username': (KAFKA_CONFIG.sasl as SASLPlainAuthzOptions).username,
    'sasl.password': (KAFKA_CONFIG.sasl as SASLPlainAuthzOptions).password,
    'log.connection.close': false,
  },
};
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

1 participant