-
Notifications
You must be signed in to change notification settings - Fork 151
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 Report] Ajax error after long time idle with auth enabled #137
Comments
@shrektan I had similar issues, and
The below are in seconds - set it to |
@dylancis Thanks for the workaround! Appreciated! However, I'll leave the issue open because IMHO, it's better to disconnect the existing app when the session is timeout. |
@dylancis BTW, a little off-topic, have you tried the new release of Shinyproxy with DT tables? I haven't looked into the cause but I see the AJAX errors saying POST methods can't be accepted. |
oups - no I did not yet. |
Also for me - I transitioned from 2.1 to 2.2 and now not even a single |
I believe it’s a bug... Actually, open the developer tools and you can see the respond of the AJAX request - POST methods can't be accepted by the server but GET is ok... |
Hi @shrektan have you raised this apricot issue about DT ? We are planning to upgrade but our apps relies heavily on datatable library. |
As @dylancis mentioned, increasing Note: this comment is about session expiration resulting in 401 (unauthorized) responses. It is not about the ajax POST issue resulting in 405 (method not allowed) responses. |
This is now fixed in ShinyProxy 2.6.0 (ContainerProxy 0.8.10)! Thank you for the very useful bug report! |
Fixing Ajax Datatable bug - openanalytics/shinyproxy#137, openanalytics/shinyproxy#140
For example, let's say you have the below simple app. Note that the DT table uses ajax when
server = TRUE
(the server processing mode).When with auth enabled (any auth methods), you open the browser and enter the app and everything works fine (like click the page button below the table). However, after long time idle (30 mins or 1 hour), click the page button you will find DT complaints the ajax error. The way to solve is simple: refresh the page or just open a new connection to Shinyproxy and perform the re-login. But it confuses the users a lot.
This is because after long time idle, Shinyproxy requires you to re-login for the new connection but the existing connection is still valid. It has the side-affect that the AJAX posting which the existing app trying to perform will be rejected by the server, because Shinyproxy regards it as a new connection...
The way to solve this I believe is to
Thanks.
The text was updated successfully, but these errors were encountered: