rstudio / shinyloadtest

Tools for load testing Shiny applications
https://rstudio.github.io/shinyloadtest
108 stars 22 forks source link

record_session() does not stop the recording after the tab/window was closed #131

Open j-kreis opened 3 years ago

j-kreis commented 3 years ago

I am working on an RStudio Server Pro system, with a proxy server and LDAP authentication using Chrome. After using record_session() for an application that is deployed on an RStudio Connect Server everything works fine. However, when I am done and close the window the recording does not stop. If I stop it manually and use shinycannon I get the following error:

2020-08-10 09:04:10.277 INFO [thread00] - Detected target application type: RStudio Server Connect
2020-08-10 09:04:10.278 ERROR [thread00] - Uncaught exception on thread00
java.lang.IllegalStateException: last event in log not a WS_CLOSE (did you close the tab after recording?)
        at com.rstudio.shinycannon.EnduranceTest.run(Main.kt:292)

This problem seems similar to an issue with httpuv. However, I updated to 1.5.4 and the recording does not stop after waiting a few seconds.