Skip to content

Broker is unavailable under devcontainer #267

Open
@rkhudov

Description

Describe the bug

Hello, I am trying to have a test with Apache Kafka under devcontainers.
I am using use testcontainers_modules::kafka::apache::Kafka;
I am running the same test provided here, but for some reason I get following error:

called Result::unwrap() on an Err value: (KafkaError (Message production error: MessageTimeOut (Local: Message timed out)), OwnedMessage { payload: Some([77, 101, 115, ...]), key: Some([75, 101, 121, 32, 48]), topic: "test-topic", timestamp: NotAvailable, partition: -1, offset: -1001, headers: None })

I wonder if it is related to devcontainer and instead of 127.0.0.1 I have to use another ip address?

To Reproduce

No response

Expected behavior

No response

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions