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

Cannot subscribe to topics with ProtoBuf payloads #31

Open
NomadQA opened this issue Jan 18, 2024 · 0 comments
Open

Cannot subscribe to topics with ProtoBuf payloads #31

NomadQA opened this issue Jan 18, 2024 · 0 comments

Comments

@NomadQA
Copy link

NomadQA commented Jan 18, 2024

I cannot subscribe to topics with ProtoBuf payloads as both the _on_message and _on_message_list callbacks within MQTTKeywords.py return the payload decoded to utf-8, with the .decode('utf-8').
With ProtoBuf messages, since they are simply raw bytes which are able to contain bytes that cannot be decoded to utf-8, the decode fails and an error message like the following is received:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x97 in position 63: invalid start byte

Is there any plans to allow ProtoBuf payloads?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant