Description
After leaving the Deephaven UI open while the computer is suspended for a while, UI is unresponsive and server logs are flooded with No AuthenticationRequestHandler registered for type Bearer.
Steps to reproduce
- Open the Web UI in the browser
- Suspend/Sleep your computer for ~15 minutes
- Wake up computer and look at Web UI
Expected results
3. Web UI should be working, or should have a popup asking to re-authenticate
Actual results
3. Web UI is not working, and there are errors in the logs. If left suspended long enough, it will be completely unresponsive. You may need to wait a few minutes before the "Authentication failed" message appears, prompting you to refresh (assuming the UI hasn't locked up completely).
Additional details and attachments
In the UI logs, there are a bunch of errors from the HeapUsage component:
[HeapUsage] Unable to get heap usage Error: Authentication details invalid
at Object.onEnd (dh-internal.js:1:724077)
at dh-internal.js:1:55831
at dh-internal.js:1:42819
at Array.forEach (<anonymous>)
at e.rawOnEnd (dh-internal.js:1:42781)
at e.onTransportEnd (dh-internal.js:1:42488)
at Object.$onMessage (dh-core.js:20455:35)
at MultiplexedWebsocketTransport$3methodref$onMessage$Type.handleEvent_2 [as handleEvent]
Right now this component just polls, we should probably be smarter about how we queue up the requests instead of just using setInterval, so we don't accidentally queue up a bunch of events; also should handle the error better.
On the server there are a bunch of logs repeated:
2023-08-04T14:40:51.529Z | qtp1871312485-127 | INFO | i.d.s.s.SessionService | No AuthenticationRequestHandler registered for type Bearer
2023-08-04T14:41:01.529Z | qtp1871312485-127 | INFO | i.d.s.s.SessionService | No AuthenticationRequestHandler registered for type Bearer
2023-08-04T14:41:07.072Z | qtp1871312485-127 | INFO | i.d.s.s.SessionService | No AuthenticationRequestHandler registered for type Bearer
2023-08-04T14:41:07.090Z | qtp1871312485-113 | INFO | i.d.s.s.SessionService | No AuthenticationRequestHandler registered for type Bearer
Not sure why that is getting triggered repeatedly, but takes a while for the EVENT_RECONNECT_AUTH_FAILED to fire.
Versions
Engine Version: 0.26.1
Web UI Version: 0.44.1
Java Version: 17.0.7
Barrage Version: 0.6.0
Description
After leaving the Deephaven UI open while the computer is suspended for a while, UI is unresponsive and server logs are flooded with
No AuthenticationRequestHandler registered for type Bearer.Steps to reproduce
Expected results
3. Web UI should be working, or should have a popup asking to re-authenticate
Actual results
3. Web UI is not working, and there are errors in the logs. If left suspended long enough, it will be completely unresponsive. You may need to wait a few minutes before the "Authentication failed" message appears, prompting you to refresh (assuming the UI hasn't locked up completely).
Additional details and attachments
In the UI logs, there are a bunch of errors from the
HeapUsagecomponent:Right now this component just polls, we should probably be smarter about how we queue up the requests instead of just using
setInterval, so we don't accidentally queue up a bunch of events; also should handle the error better.On the server there are a bunch of logs repeated:
Not sure why that is getting triggered repeatedly, but takes a while for the
EVENT_RECONNECT_AUTH_FAILEDto fire.Versions
Engine Version: 0.26.1
Web UI Version: 0.44.1
Java Version: 17.0.7
Barrage Version: 0.6.0