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 parse data from stdin #69

Open
chapinb opened this issue Oct 27, 2020 · 3 comments
Open

Cannot parse data from stdin #69

chapinb opened this issue Oct 27, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@chapinb
Copy link
Owner

chapinb commented Oct 27, 2020

❯ echo 'hi1.1.1.1.1world' | chickadee
2020-10-27 19:23:33,923 chickadee.py ERROR chickadee file_handler:341 - Failed to parse <_io.TextIOWrapper name='<stdin>' mode='r' encoding='UTF-8'>
2020-10-27 19:23:33,923 chickadee.py ERROR chickadee file_handler:342 - Error message: 'bytes' object has no attribute 'read'
2020-10-27 19:23:33,923 chickadee.py INFO chickadee run:260 - Extracted 0 distinct IPs
@chapinb chapinb added the bug Something isn't working label Oct 27, 2020
@luckman212
Copy link

I was debugging things in #80 and now that I have a working chickadee installation, I'm hitting this bug now.

$ echo 1.1.1.1 | chickadee
2023-05-25 08:32:07,924 chickadee.py ERROR chickadee file_handler:341 - Failed to parse <_io.TextIOWrapper name='<stdin>' mode='r' encoding='utf-8'>
2023-05-25 08:32:07,924 chickadee.py ERROR chickadee file_handler:342 - Error message: 'bytes' object has no attribute 'read'
2023-05-25 08:32:07,924 chickadee.py INFO chickadee run:259 - Extracted 0 distinct IPs

My typical use case would be piping in a newline-delimited list of IPs into chickadee, so I'm hopeful I can find a workaround to this.

@chapinb
Copy link
Owner Author

chapinb commented May 25, 2023

Thanks for sharing this, it helps to see other cases where this is failing. Hope to get a PR to resolve this soon.

@chapinb
Copy link
Owner Author

chapinb commented May 26, 2023

@luckman212 can you take a look at #88 and see if it is now working as expected?

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

2 participants