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
{{ message }}
Repository navigation
HTTP(S) URLs on the standard ports (80/443) may be failing #158
I don't have a reprex, but I believe that if you try to connect to an URL "https://host" (on port 443) which does not also answer on port 80, shinytest2 will think this app is not up because pieces$port is NULLand pingr::is_up defaults to port = 80 [which may be irrelevant if it's NULL already].
changed the title [-]HTTPS URLs without explicit port may be failing unless backed by an HTTP server[/-][+]HTTPS URLs without explicit port may be failing [unless backed by an HTTP server][/+]on Mar 31, 2022
The problem is aggravated by the fact that private$shiny_test_url is lacking the port if it's a standard port, even if it is was passed to the AppDriver, probably because it's received from Chrome via chromote, and Chrome does not display standard ports:
changed the title [-]HTTPS URLs without explicit port may be failing [unless backed by an HTTP server][/-][+]HTTP(S) URLs on the standard ports (80/443) may be failing[/+]on Mar 31, 2022
Activity
bersbersbers commentedon Mar 31, 2022
It would by the way be nice if these two error messages were slightly different so one could tell which line of code it is from the error message:
shinytest2/R/httr.R
Line 6 in 18dd006
shinytest2/R/httr.R
Line 16 in 18dd006
[-]HTTPS URLs without explicit port may be failing unless backed by an HTTP server[/-][+]HTTPS URLs without explicit port may be failing [unless backed by an HTTP server][/+]bersbersbers commentedon Mar 31, 2022
The problem is aggravated by the fact that
private$shiny_test_urlis lacking the port if it's a standard port, even if it is was passed to the AppDriver, probably because it's received from Chrome via chromote, and Chrome does not display standard ports:shinytest2/R/app-driver-initialize.R
Lines 151 to 154 in 1a4ed70
[-]HTTPS URLs without explicit port may be failing [unless backed by an HTTP server][/-][+]HTTP(S) URLs on the standard ports (80/443) may be failing[/+]bersbersbers commentedon Mar 31, 2022
I tested that rstudio/shinytest@00e6df9 fixed the problem.
schloerke commentedon Apr 4, 2022
@bersbersbers Thank you!
Set port if missing when using {pingr}; Update httr error messages
Add `compare` to `$expect_download()`; Better error messages when upl…