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

[BUG] Timezone bug in generate_jwt_token #9938

Closed
scaine1 opened this issue Apr 18, 2020 · 0 comments · Fixed by #9939
Closed

[BUG] Timezone bug in generate_jwt_token #9938

scaine1 opened this issue Apr 18, 2020 · 0 comments · Fixed by #9939

Comments

@scaine1
Copy link
Contributor

@scaine1 scaine1 commented Apr 18, 2020

ALL software version info (bokeh, python, notebook, OS, browser, any other relevant packages)

bokeh: 2.0.1-42-g47e7da4b7
python: 3.8.2
OS: Mac OS X 10.15.3

Description of expected behavior and the observed behavior

see https://discourse.bokeh.org/t/timezone-bug-in-generate-jwt-token/5206

Stack traceback and/or browser JavaScript console output

On the django server we get

  File "/Users/simon/anaconda3/envs/owsforecasts/lib/python3.7/site-packages/bokeh/client/session.py", line 119, in pull_session
    session.pull()
  File "/Users/simon/anaconda3/envs/owsforecasts/lib/python3.7/site-packages/bokeh/client/session.py", line 348, in pull
    raise IOError("Cannot pull session document because we failed to connect to the server (to start the server, try the 'bokeh serve' command)")
OSError: Cannot pull session document because we failed to connect to the server (to start the server, try the 'bokeh serve' command)

From the Django app we get

Traceback (most recent call last):
  File "/Users/simon/anaconda3/lib/python3.6/site-packages/tornado/websocket.py", line 956, in _accept_connection
    open_result = handler.open(*handler.open_args, **handler.open_kwargs)
  File "/Users/simon/anaconda3/lib/python3.6/site-packages/bokeh/server/views/ws.py", line 135, in open
    raise ProtocolError("Token is expired.")
bokeh.protocol.exceptions.ProtocolError: Token is expired

Screenshots or screencasts of the bug in action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants