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

invalid memory address or nil pointer dereference when consuming a topic using a context #2411

Open
natalia-ramos-bzy opened this issue Nov 10, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@natalia-ramos-bzy
Copy link

There is an error when using contexts when consuming from a topic

confluent kafka topic <topicName> --context dev
Error: runtime error: invalid memory address or nil pointer dereference

CLI details:

confluent - Confluent CLI

Version:     v3.40.0
Git Ref:     299e722ef
Build Date:  2023-11-02T23:32:56Z
Go Version:  go1.21.0 X:boringcrypto (windows/amd64)
Development: false
@brianstrauch
Copy link
Member

Please update to v3.41.0 and let me know if that doesn't fix it.

@natalia-ramos-bzy
Copy link
Author

I still have the same issue with v3.42.0:

confluent - Confluent CLI

Version:     v3.42.0
Git Ref:     41bf3c3ed
Build Date:  2023-11-16T20:20:16Z
Go Version:  go1.21.0 X:boringcrypto (windows/amd64)
Development: false
confluent kafka topic consume <topicName> --context dev
Error: runtime error: invalid memory address or nil pointer dereference

@brianstrauch
Copy link
Member

Looks like our telemetry wasn't able to collect that runtime error and I'm unable to replicate it. Here are a few things you can try:

  1. Give the command another run. If it results in a runtime error our telemetry systems should pick it up.
  2. Build the CLI from source and run the command. You'll see the full stack trace which you can paste here.

@brianstrauch brianstrauch added the bug Something isn't working label Jan 11, 2024
@natalia-ramos-bzy
Copy link
Author

natalia-ramos-bzy commented Jan 17, 2024

Using v3.47.0 I get this new error:

confluent kafka topic <TopicName> --context dev
Error: required flag `--bootstrap` not set

@brianstrauch
Copy link
Member

brianstrauch commented Jan 17, 2024

Did you mean to type "confluent kafka topic consume"?

@brianstrauch
Copy link
Member

Also, as of v3.42.0 the --bootstrap flag is no longer required. Please check that you're using an up-to-date version. It sounds you may have multiple versions of the Confluent CLI installed, so make sure that the one you expect appears earlier in your $PATH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants