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

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 this issue Nov 2, 2023 · 8 comments

Comments

@fjycomes
Copy link

fjycomes commented Nov 2, 2023

微信图片_20231102152041
@fjycomes fjycomes changed the title 当我上传一个json文件时报错。求助 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 Nov 2, 2023
@mehaase
Copy link
Contributor

mehaase commented Nov 2, 2023

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

@fjycomes
Copy link
Author

fjycomes commented Nov 2, 2023

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
Copy link
Contributor

mehaase commented Nov 2, 2023

Can you post the entire error log here?

@fjycomes
Copy link
Author

fjycomes commented Nov 2, 2023

que

@mehaase
Copy link
Contributor

mehaase commented Nov 6, 2023

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

@fjycomes
Copy link
Author

fjycomes commented Nov 7, 2023

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
Copy link
Author

fjycomes commented Nov 7, 2023

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
Copy link
Contributor

mehaase commented Mar 18, 2024

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.

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