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

The CSRF token has expired #4739

Closed
baoxiao opened this issue Apr 2, 2018 · 1 comment · Fixed by #4741
Closed

The CSRF token has expired #4739

baoxiao opened this issue Apr 2, 2018 · 1 comment · Fixed by #4741

Comments

@baoxiao
Copy link

baoxiao commented Apr 2, 2018

Make sure these boxes are checked before submitting your issue - thank you!

  • [ X] I have checked the superset logs for python stacktraces and included it here as text if any
  • [ X] I have reproduced the issue with at least the latest released version of superset
  • [ X] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

0.23.3

Expected results

Create a dashboard, set it to auto refresh every 1 munute,

Actual results

After about 1 hour get error at UI
Unexpected error.
Check the sueprset server log find this
flask_wtf.csrf:The CSRF token has expired

Steps to reproduce

@mistercrunch mistercrunch changed the title dashboard The CSRF token has expired Apr 3, 2018
@mistercrunch
Copy link
Member

You can set WTF_CSRF_TIME_LIMIT= None in your superset_config.py for a never-expiring token as documented here: http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf

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

Successfully merging a pull request may close this issue.

2 participants