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

Message delivery log garbled #2

Open
stufro opened this issue Dec 13, 2023 · 1 comment
Open

Message delivery log garbled #2

stufro opened this issue Dec 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@stufro
Copy link
Contributor

stufro commented Dec 13, 2023

When the Kafka::Producer::DeliveryReport callback is called, the log message appears like the below where the payload seems to be appearing as a binary blob.

2023-12-13T14:47:56.054339Z   INFO - crafka: Message Delivered - <83>ø#014t>~#034<83>ø#020t'<83>øn#017<94>À#017¶À<8d>D
2023-12-13T14:47:56.054344Z   INFO - crafka: Message Delivered - <83>ø#014t>~#034<83>ø#020t'<83>øn#017<94>À#017¶À<8d>D
2023-12-13T14:47:56.054346Z   INFO - crafka: Message Delivered - <83>ø#014t>~#034<83>ø#020t'<83>øn#017<94>À#017¶À<8d>D

This only seems to occur on our linux servers and not when running locally on my Mac.

@stufro stufro added the bug Something isn't working label Dec 13, 2023
@stufro
Copy link
Contributor Author

stufro commented Jan 5, 2024

I've tried a lot of options with String.new and couldn't fix this issue.

I also tried manually getting the bytes out of the pointer and then initialise a string.

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

1 participant