-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Improve handling when DJDT views don't respond with JSON #1847
Labels
Comments
Can you share what's going on in the network panel of the browser developer tools? Something is returning an html response when it's not expected. |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
Re-opening because I'm re-purposing the issue |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
2 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sidebar loads fine until you press any of the buttons, for example "Cache".
As soon as i press it i get
![image](https://private-user-images.githubusercontent.com/73353716/277353577-77a6125c-b73f-46f1-ae14-d422187142ea.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzQzNTIsIm5iZiI6MTczOTE3NDA1MiwicGF0aCI6Ii83MzM1MzcxNi8yNzczNTM1NzctNzdhNjEyNWMtYjczZi00NmYxLWFlMTQtZDQyMjE4NzE0MmVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDA3NTQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTNiNmY3OGJkOGRhZGJkYWFjYTEwY2VmMWM1MTVjMWY2ODY4OTgwZWZjNWE0YmMzNWVkMjUxNTBmMDhmMTliMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.sdLsb_9qg1reEsZ9X2j3Z78qs0jgfweDfs0lZ3r20Wg)
I load django toolbar at the start so
Also does it after my normal urls. Does it in all of my projects now, not sure why but it's really annoying. One of my other test pages calls a request every 7 seconds, and each time it fetches data i get that error on my screen. So annoying.
I'm happy to provide more details
Thanks :)
Edit from Tim:
This issue is because the toolbar views have some authorization logic wrapping them causing the responses to be HTML rather than JSON. Our JS frontend should identify when the responses don't match expectations and notify the user of such to make it easier to diagnose.
The text was updated successfully, but these errors were encountered: