center-for-threat-informed-defense / tram

TRAM is an open-source platform designed to advance research into automating the mapping of cyber threat intelligence reports to MITRE ATT&CK®.
https://ctid.mitre-engenuity.org/our-work/tram/
Apache License 2.0
455 stars 97 forks source link

When I run TRAM to upload a json file for analysis, nothing is displayed in the report field, and the log error is as follows #205

Open fjycomes opened 1 year ago

fjycomes commented 1 year ago
微信图片_20231102152041
mehaase commented 1 year ago

It looks like the JSON file is not valid. Try validating the file using jq or an online validator.

fjycomes commented 1 year ago

Thanks for the reply, after solving this issue I uploaded the correct json format file, but it shows a new problem :"WARNING [django.request] Bad Request: /upload/" pls is there a solution

mehaase commented 1 year ago

Can you post the entire error log here?

fjycomes commented 1 year ago
que
mehaase commented 1 year ago

Try setting DJANGO_DEBUG=1 in the docker compose environment for the tram container, upload the file again, and post the logs here.

fjycomes commented 1 year ago

Try setting DJANGO_DEBUG=1 in the docker compose environment for the tram container, upload the file again, and post the logs here.

The location I set is as shown in the picture, but it doesn't seem to have entered debug mode. Did I set the wrong location.

debug
fjycomes commented 1 year ago

Try setting DJANGO_DEBUG=1 in the docker compose environment for the tram container, upload the file again, and post the logs here.

And the error message when re uploading the file is still: [django. request] Bad Request

mehaase commented 8 months ago

Sorry @fjycomes I lost track of this thread. That does look like the right place to put the DJANGO_DEBUG. You would need to rebuild the containers after making that change, e.g. docker compose down && docker compose up.

Are you able to share a copy (possibly redacted) of the file you're testing with? That would help me troubleshoot this faster.