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

KeyError in templates/reporting.html line 249 #1

Open
jdubp opened this issue Aug 14, 2019 · 2 comments
Open

KeyError in templates/reporting.html line 249 #1

jdubp opened this issue Aug 14, 2019 · 2 comments
Assignees

Comments

@jdubp
Copy link

jdubp commented Aug 14, 2019

Hi,

Great work on the tool! When running a sample however, I receive an internal server error on the reporting lookup... traceback <type 'exceptions.KeyError'> at /report/* line 249

$for entry in table_data[0]

The error is due to the the table_data dict not being populated. In reviewing the code in hachi.py, table_data becomes populated only if certain JSON files exist in the OUTPUT directory. In my case, the OUTPUT directory for the sample gets created but does not contain the JSON files. It appears the JSON files are supposed to created in the OUTPUT directory from execution of the scanda.py file?

Any suggestions?

@Kart1keya Kart1keya self-assigned this Sep 3, 2019
@Kart1keya
Copy link
Owner

@jdubp Yes, this exception is due to nonpresence of JSON files in the output directory. For the creation of JSON files, you'll have to run scanda.py as well as mentioned in Step 5 in the readme file:
Run hachi.py and scanda.py

scanda.py is the core engine for scanning the sample. Hope this helps. :)

@jdubp
Copy link
Author

jdubp commented Sep 3, 2019

Thank you for the response. I should have mentioned that I receive this error with hachi.py and scanda.py both running. I was attempting to do my own troubleshooting.

The current environment I am using for testing is Windows 7 and Python 2.x. I have validated the MSMQ private pipe is functioning. When i submit a sample it lives in the "Pending" state in the GUI and the error is generated upon attempting to click the sample to get the report. It may be an environment issue but it appears samples do not actually run in my environment.

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

No branches or pull requests

2 participants