Open fjycomes opened 1 year ago
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.
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.
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.