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

Misleading error output when not logged in #147

@aaronkao

Description

@aaronkao

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions