Skip to content

Commit

Permalink
improve session expiry error message (bokeh#13991)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryevdv committed Jul 22, 2024
1 parent 4e546e5 commit 000d49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bokeh/server/views/ws.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def open(self) -> None:
raise ProtocolError("Session expiry has not been provided")
elif now >= payload['session_expiry']:
self.close()
raise ProtocolError("Token is expired.")
raise ProtocolError("Token is expired. Configure the app with a larger value for --session-token-expiration if necessary")
elif not check_token_signature(token,
signed=self.application.sign_sessions,
secret_key=self.application.secret_key):
Expand Down

0 comments on commit 000d49f

Please sign in to comment.