Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

delimiter flag -D not supporting empty string value any more #280

Closed
Stu-P opened this issue Oct 26, 2020 · 1 comment
Closed

delimiter flag -D not supporting empty string value any more #280

Stu-P opened this issue Oct 26, 2020 · 1 comment

Comments

@Stu-P
Copy link

Stu-P commented Oct 26, 2020

Not sure if this is really an issue, perhaps a misunderstanding, but did cause me an issue so thought id mention it. I am piping the output of kafkacat into protobuf compiler to query values, using the solution here #72

specifically I must provide the empty string delimiter or else the parsing fails (at least with any other delimiter I can think of, or if i provide no delimiter flag)
...
-D "" -e | protoc --decode_raw

After building with the latest master branch I am now getting an error
% ERROR: Message delimiter -D must be exactly one byte (no multi-byte unicode code points)

Seems fair that I should provide a charactor if im using the flag but does seem to mean I can no longer decode protobuf messages using the above technique.

I went back and build with tag 1.5.0 and the -D "" -e | protoc --decode_raw works with this code so I will just use the older version, but would be good to have a solution for this use case.

@edenhill edenhill closed this as completed Jan 4, 2021
@amit-handda
Copy link

@edenhill may I know why this was marked as completed. is kcat broken for this usecase ? for >= 1.5.0 ? thanks

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

No branches or pull requests

3 participants