Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Misleading error output when not logged in #147

Open
aaronkao opened this issue Feb 28, 2023 · 1 comment
Open

Misleading error output when not logged in #147

aaronkao opened this issue Feb 28, 2023 · 1 comment

Comments

@aaronkao
Copy link

I tried to run this command

confluent kafka topic produce "$(pulumi stack output ordersTopicName)" --environment "$(pulumi stack output environmentId)" --cluster "$(pulumi stack output clusterId)" --api-key "$(pulumi stack output producerApiKeyId)" --api-secret "$(pulumi stack output producerApiKeySecret --show-secrets)"

and I got this as the error output

Error: unknown flag: --environment
Usage:
  confluent kafka topic produce <topic> [flags]

Examples:
Produce message to topic "my_topic" with SASL_SSL/PLAIN protocol (providing username and password).

  $ confluent kafka topic produce my_topic --protocol SASL_SSL --sasl-mechanism PLAIN --bootstrap "localhost:19091" --username user --password secret --ca-location my-cert.crt

Produce message to topic "my_topic" with SSL protocol, and SSL verification enabled.

  $ confluent kafka topic produce my_topic --protocol SSL --bootstrap "localhost:18091" --ca-location my-cert.crt

I hadn't logged in using confluent login. The expected error output should have been to request me to login.

@mswanson-mastery
Copy link

Thank you for posting this, tripped me up for about 45 minutes this morning.

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

No branches or pull requests

2 participants