You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error in `app_expect_values(self, private, ..., input = input, output = output,
export = export, screenshot_args = screenshot_args, name = name,
cran = cran)`: Shiny server returned 404 for values URL: http://127.0.0.1:5711/session/bc777a48fd9d472a3a1f837f1ece2d67/dataobj/shinytest?w=&nonce=c7e7d7b16&input=1&output=1&export=1&format=json&sortC=1
ℹ Is `shiny::runApp(test.mode = TRUE)` enabled?
Backtrace:
▆
1. └─app$expect_values() at test-shinytest2.R:16:2
2. └─shinytest2:::app_expect_values(...)
3. └─shinytest2:::app_httr_get(...)
4. └─shinytest2 (local) fn_404(req)
5. └─shinytest2:::app_abort(...)
6. └─rlang::abort(..., app = self, call = call)
I've managed to establish that it's caused by an interaction between my use of gargoyle and leaflet.extras. When the app either contains leaflet.extras::addDrawToolbar without gargoyle everything is fine, and similarly if I create a simple app using just gargoyle everything works fine. Here's an MRE and the test which fails to run: (what was extra confusing, is that I encountered this on my first use of shinytest2 and so I spent hours trying to enable test.mode = TRUE)
I'm also getting a Shiny server returned 404 for values URL error.
The error seems to provide no information on the cause of the issue. Instead, one just gets "something went wrong, good luck fixing it". This leads to such tragedies as:
and so I spent hours trying to enable test.mode = TRUE
In my case, using shinytest2::record_test() provided a full log of the error. The cause of the error was a mis-named function.
Hello
I've encountered an error whilst testing:
I've managed to establish that it's caused by an interaction between my use of
gargoyle
andleaflet.extras
. When the app either containsleaflet.extras::addDrawToolbar
withoutgargoyle
everything is fine, and similarly if I create a simple app using justgargoyle
everything works fine. Here's an MRE and the test which fails to run: (what was extra confusing, is that I encountered this on my first use ofshinytest2
and so I spent hours trying to enabletest.mode = TRUE
)The text was updated successfully, but these errors were encountered: