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
fjycomes opened this issue · comments
It looks like the JSON file is not valid. Try validating the file using jq
or an online validator.
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
Can you post the entire error log here?
Try setting DJANGO_DEBUG=1
in the docker compose environment for the tram container, upload the file again, and post the logs here.
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
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.