I am unable to successfully execute the shinyloadtest workflow. The recording.log from shinyloadtest::record_session seems to be fine despite an error but the subsequent report generation fails.
Running shinyloadtest::record_session("http://127.0.0.1:1234") produces the following output (mind the error in the end):
Listening on 127.0.0.1:8600
Navigating to: http://127.0.0.1:8600/
Browsing http://127.0.0.1:8600/
Client connected
Client connected
Client disconnected
Stopping server
Note: uploaded files to keep with recording file:
recording.log.post.0
recording.log.post.1
recording.log.post.2
recording.log.post.3
recording.log.post.4
recording.log.post.5
recording.log.post.6
recording.log.post.7
Server disconnected
Client disconnected
Error in writeLines(format(evt), private$outputFile) : invalid connection
later: exception occurred while executing callback:
invoke_wrapped: throwing std::runtime_error
After manually adding the line{"type":"WS_CLOSE","begin":"2024-03-25T08:57:35.607Z"}, loading the runs goes through but with shinyloadtest::load_runs producing the following warnings:
Could not find a valid maintenance period.
Make sure at least one complete iteration exists between the latest user st
Setting the maintenance period to be whole run.
Warning messages:
1: In readLines(recording_path) :
incomplete final line found on '[...]'
2: In readLines(file_name) :
incomplete final line found on '[...]'
3: In readLines(recording_path) :
incomplete final line found on '[...]'
4: In readLines(recording_path) :
incomplete final line found on '[...]'
Then, the report generation via shinyloadtest::shinyloadtest_report fails with:
async_extended_task_3-10_users - Concurrency Legend [=================================================>] 437/440 eta: 0sError: x must be a gtable
Here is the code that eventually lead to the error:
The problem could probably be fixed by making sure that the session is successfully recorded but I can't get rid of the Error in writeLines(format(evt), private$outputFile) : invalid connection, which is odd because the output file is written and has contents. Any idea on how to resolve this?
session info:
Session info ----------------------------------------------------------------------------------------------------------
setting value
version R version 4.3.2 (2023-10-31 ucrt)
os Windows 10 x64 (build 19045)
system x86_64, mingw32
ui RTerm
language (EN)
collate English_Belgium.1252
ctype English_Belgium.1252
tz Europe/Brussels
date 2024-07-02
pandoc 3.1.9 @ (via rmarkdown)
I am unable to successfully execute the shinyloadtest workflow. The
recording.log
fromshinyloadtest::record_session
seems to be fine despite an error but the subsequent report generation fails.Running
shinyloadtest::record_session("http://127.0.0.1:1234")
produces the following output (mind the error in the end):After manually adding the line
{"type":"WS_CLOSE","begin":"2024-03-25T08:57:35.607Z"}
, loading the runs goes through but withshinyloadtest::load_runs
producing the following warnings:Then, the report generation via
shinyloadtest::shinyloadtest_report
fails with:Here is the code that eventually lead to the error:
The problem could probably be fixed by making sure that the session is successfully recorded but I can't get rid of the
Error in writeLines(format(evt), private$outputFile) : invalid connection
, which is odd because the output file is written and has contents. Any idea on how to resolve this?session info: