hawk-eye icon indicating copy to clipboard operation
hawk-eye copied to clipboard

Error when running fs check

Open censey opened this issue 1 year ago • 4 comments

Hello, I am just trying to test the current version on a few documents. This is the outputs I see after the files are processed. Just after "Now, lets look at findings!"

Traceback (most recent call last): File "/opt/homebrew/bin/hawk_scanner", line 8, in sys.exit(main()) ^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/hawk_scanner/main.py", line 116, in main records_mini = ', '.join(result['matches']) if len(result['matches']) < 25 else ', '.join(result['matches'][:25]) + f" + {len(result['matches']) - 25} more records" ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: sequence item 0: expected str instance, tuple found

censey avatar Jan 25 '24 15:01 censey

Hi @censey thanks for using Hawk-eye

Can you run this with --debug flag and post output or screenshot here

phoenix-patrick avatar Jan 26 '24 08:01 phoenix-patrick

Its taking a really long time to run but is parsing the various patterns. I will try to wait it out. Been hours for a single 1mb file.

censey avatar Jan 26 '24 17:01 censey

@censey This shouldn't be happening, i just checked this with bunch of pdfs, zip and docx. It's working fine with latest version. Can you tell me what kind of file you are scanning and possibly screenshot or logs with --debug flag?

rohitcoder avatar Jan 27 '24 12:01 rohitcoder

Ok. I removed the xlsx file I was testing with and added a very simple word doc. That ran flawlessly. Something in this xls was causing all kinds of issues. It was a large document with several tabs and 2k plus columns. Some nested json in some of the fields too.

censey avatar Jan 27 '24 13:01 censey

Hey @censey

Let me know, if you still find this issue relevant, then I'll look into this. Otherwise, I will be closing this. If possible please attach a sample file for debugging purpose, after removing sensitive data from it.

rohitcoder avatar Jun 30 '24 12:06 rohitcoder