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

confluent_kafka.Message.headers() returns incorrect value #206

Open
1 task done
rudo-ro opened this issue Aug 12, 2024 · 0 comments
Open
1 task done

confluent_kafka.Message.headers() returns incorrect value #206

rudo-ro opened this issue Aug 12, 2024 · 0 comments
Labels
bug Issue - Something isn't working unconfirmed Bug not yet confirmed as valid/applicable

Comments

@rudo-ro
Copy link
Contributor

rudo-ro commented Aug 12, 2024

Initial Checks

  • I confirm that I'm using Types-Confluent-Kafka

Description

https://docs.confluent.io/platform/current/clients/confluent-kafka-python/html/index.html#confluent_kafka.Message.headers

in the docs I'm seeing

headers()

    Retrieve the headers set on a message. Each header is a key valuepair. Please note that header keys are ordered and can repeat.

    Returns

        list of two-tuples, one (key, value) pair for each header.
    Return type

        [(str, bytes),…] or None.

In the code I'm seeing;

    def headers(self) -> list[tuple[str, str | bytes]] | None: ...

Example Code

No response

Python, verion of Types-confluent-kafka. verion of Confluent-kafka-python, your applications settings & OS Version

confluent-kafka==2.3.0
types-confluent-kafka==1.2.2


### Affected Components

- [X] confluent-kafka-python and librdkafka version (`confluent_kafka.version()` and `confluent_kafka.libversion()`)
- [X] Apache Kafka broker version
- [X] Client configuration: `{...}` is provided
- [X] Operating system is provided
- [X] Provide IDE screenshot if it's possible
@rudo-ro rudo-ro added bug Issue - Something isn't working unconfirmed Bug not yet confirmed as valid/applicable labels Aug 12, 2024
@rudo-ro rudo-ro changed the title confluent_kafka.Message.headers() produces incorrect value confluent_kafka.Message.headers() returns incorrect value Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue - Something isn't working unconfirmed Bug not yet confirmed as valid/applicable
Projects
None yet
Development

No branches or pull requests

1 participant