Skip to content

Data for this panel isn't available anymore. Please reload the page and retry. #750

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

Closed
srus opened this issue Sep 16, 2015 · 16 comments
Closed

Comments

@srus
Copy link

srus commented Sep 16, 2015

Hello, I'm getting the following message in some pages:

Data for this panel isn't available anymore. Please reload the page and retry.

I tried updating to the latest version (1.3.2), but still get the same message. It's really strange that for some pages works fine and for others not. Any ideas?

Thanks

@tim-schilling
Copy link
Member

tim-schilling commented Sep 16, 2015 via email

@srus
Copy link
Author

srus commented Sep 16, 2015

No, it isn't. For example in the home page the toolbar doesn't work. So if after fully loading the page I click the icon to show the toolbar and then click for example in the SQL tab, I can only see 1 request made in the runserver logs. See below the latest 2 requests I get in the runserver logs:

"GET /static/images/favicon.ico HTTP/1.1" 200 8348
"GET /__debug__/render_panel/?store_id=dc4583336c2a44aa82c51a0536048b62&panel_id=SQLPanel HTTP/1.1" 200 89

@srus
Copy link
Author

srus commented Sep 16, 2015

Here you can see the logs I get in a page where the toolbar works fine:

"GET /__debug__/render_panel/?store_id=f49ad04e543c4ece912bcdb2d50885b2&panel_id=SQLPanel HTTP/1.1" 200 141066
"GET /static/toolbar/debug_toolbar/js/toolbar.sql.js?_=1442403893082 HTTP/1.1" 200 353

@tim-schilling
Copy link
Member

tim-schilling commented Sep 16, 2015 via email

@srus
Copy link
Author

srus commented Sep 16, 2015

Maybe some missing static resource is affecting the toolbar? It's a bit weird, because sometimes it doesn't work in the pages where it used to work fine, but after some reloadings, then it works again.

All the pages usually have some missing static resources, like images, because I don't have them in my local machine. I can also see some javascript exceptions in the browser console. But they are also in the pages where the toolbar works fine...

@tim-schilling
Copy link
Member

It'd be very helpful if you could create a small sample project that was having the same issue.

@srus
Copy link
Author

srus commented Sep 17, 2015

I don't think I can replicate the same environment I have in the current project, since it is a bit complex and big. I guess it's something related to the front-end, since I can open Debug Toolbar, and even works fine in some pages. Although sometimes it doesn't work in those same pages...

@aaugustin
Copy link
Contributor

The toolbar keeps track of recent queries where it was inserted, by default the last 10. If you make more than 10 queries where the toolbar is inserted between the initial page load and the moment you open the panel, that would explain the behavior you're seeing.

Increasing RESULTS_CACHE_SIZE may help. See
http://django-debug-toolbar.readthedocs.org/en/latest/configuration.html#debug-toolbar-config.

@srus
Copy link
Author

srus commented Nov 20, 2015

@aaugustin Forgot to say thanks. Increasing RESULTS_CACHE_SIZE to 100 solved the problem.

@gam-phon
Copy link

gam-phon commented Dec 8, 2015

Yes. Increasing RESULTS_CACHE_SIZE solve my problem also.

@philgyford
Copy link

For anyone else coming to this, for whom increasing RESULTS_CACHE_SIZE doesn't work...

I'm using gunicorn and had its NUM_WORKERS set to 1. Increasing it to 2 (or more) fixed this problem.

@im-n1
Copy link

im-n1 commented Apr 23, 2016

@philgyford thank you very much. Works! (the NUM_WORKERS)

@bmoe872
Copy link

bmoe872 commented Sep 26, 2017

I have done all of the above, and I am still getting this same error message. I am using uWSGI, and increased the number of workers to 2. I also increased the RESULTS_CACHE_SIZE to 100. (I've also tried much higher values)

I'm using Django 1.11.3.
I am able to see the SQL panel is trying to get ~742queries, but I would like to see what these are.

@ajostergaard
Copy link

I had this problem BECAUSE I had more than one worker, a worker without knowledge of my history was getting the requests - hence I tried RENDER_PANELS=True but that had no effect.

All my debug-toolbar issues went away when I switched to gunicorn --workers 1 and increased RESULTS_CACHE_SIZE to a more sensible value. :)

@marangonico
Copy link

I just came across this problem and solved flushing the redis cache ("redis-cli flushall").

@tutuca
Copy link

tutuca commented May 13, 2020

I'm running into this issue with the development server (manage.py runserver) and no refresh in-between.

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

10 participants