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

[bug] Error: unhandled exception(JsonParsingError) when specifying a file that is not JSONL #43

Closed
fukusuket opened this issue Sep 30, 2023 · 0 comments · Fixed by #44
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@fukusuket
Copy link
Collaborator

fukusuket commented Sep 30, 2023

Describe the bug
If you specify a not JSONL format file in the command below, which requires a JSONL format file, Error: unhandled exception will occur.

  • list-domains
  • list-hashes
  • list-ip-addresses
  • split-json
  • stack-logons
  • sysmon-process
  • timeline-logon
  • timeline-suspicious-processes

Step to Reproduce

  1. ./hayabusa-2.9.0-mac-arm json-timeline -d ../hayabusa-sample-evtx -o out.json
  2. ./takajo-main list-domains -t out.json -o out.txt

Expected behavior
No exceptions are displayed.
An error message appears stating that JSONL must be specified.

Actual behavior
Following exception is displayed.

% ./takajo-main list-domains -t out.json -o out.txt
...

  0%|                         |      0/819432 [ 0.0s<  ??s,      ??/sec]parsejson.nim(518)       raiseParseErr
Error: unhandled exception: input(1, 1) Error: string literal as key expected [JsonParsingError]

Environment

  • OS: macOS Ventura 13.5.2
  • Takajo version 2.0.0
@fukusuket fukusuket added the bug Something isn't working label Sep 30, 2023
@fukusuket fukusuket self-assigned this Sep 30, 2023
@fukusuket fukusuket changed the title [bug] Error: unhandled exception(JsonParsingError) when specifying a file that does not JSONL [bug] Error: unhandled exception(JsonParsingError) when specifying a file that is not JSONL Sep 30, 2023
@hitenkoku hitenkoku added this to the 2.1.0 milestone Sep 30, 2023
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

Successfully merging a pull request may close this issue.

2 participants