Error: failed to obtain topics from client: API key may not be provisioned yet

I’m a beginner to Kafka and started learning Apache Kafka 101. I’m getting this error when I try to produce and consume messages in confluent cloud using command line.
"Error: failed to obtain topics from client: API key may not be provisioned yet"

Note:- I’ve created the API key and using the same before producing/consuming messages.

But from confluent cloud I’m able to consume and produce the messages under ENVIRONMENTS → DEFAULT → TOPICS → MESSAGES

Could anyone please help to resolve this issue?

Hi @sasikanthb

Some next steps to try:

  1. It might have a been a transient issue that resolved, so please check again now
  2. Create a new API key/secret to use from the CLI

-Yeva

1 Like

Hi @ybyzek

Tried the steps but unfortunately it didn’t work.
I’m still getting the same error :frowning:

confluent kafka topic consume --from-beginning poems
%3|1650429548.796|FAIL|Confluent-CLI_v2.8.1#consumer-1| [thrd:sasl_ssl://pkc-xrnwx.asia-south2.gcp.confluent.cloud:9092/boots]: sasl_ssl://pkc-xrnwx.asia-south2.gcp.confluent.cloud:9092/bootstrap: Failed to connect to broker at [ns-cloud-d2.googledomains.com]:9092: Network unreachable (after 335ms in state CONNECT)
Error: failed to obtain topics from client: API key may not be provisioned yet

hi @sasikanthb

just to be sure:
network is reachable? telnet to broker address works?

best
michael

Hi @mmuehlbeyer

Yes, network is reachable.

telnet pkc-xrnwx.asia-south2.gcp.confluent.cloud 9092
Trying 34.131.207.35...
Connected to pkc-xrnwx.asia-south2.gcp.confluent.cloud.

Escape character is ‘^]’.