-
Notifications
You must be signed in to change notification settings - Fork 20
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
view() shows websockets disconnection #99
Comments
I think this is the same issue as rstudio/shinytest2#331. |
I wonder if it's related to recent changes to headless mode in Chrome? IIUC, as of Chrome 112, headless mode now uses the same engine as headful mode where previously headless mode was a completely separate engine. I don't know the full context but the timing is suspicious and the linked article mentions the live viewer explicitly, so it seems feasible that something might have changed in that area. |
It looks like this is due to a security change in Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=1422444#c5 One workaround is to add |
I made a workaround for testing in #100. You can try it with: remotes::install_github("rstudio/chromote@origin-testfix") |
@wch Since chromote doesn't currently expose an option to set the port, should it internally find a random port? Or would you prefer to expose an argument for setting the port number? |
I think it makes sense to always find a random port. I can't think of a reason offhand why one would need a specific port number. |
@edwardhealey Are you getting the exact same behavior and error messages? I would expect a slightly different error message to be reported in the R console than was originally reported here. It's possible that error message may be informative. Can you include anything printed in the R console? Can you also please report your operating system and the version of Chrome you're using? |
@edwardhealey I just bumped the version number to 0.1.1.9001, so please reinstall, test it, and if it still fails, please include the output from |
@edwardhealey For me it seemed that installing the fix provided by wch was not enough, but I needed to also update chromium for the $view to work again. I assume it was the update as in a given moment $view was working with google-chrome (installed after finding this problem to test if that solved the problem, so most recent version) but not in chromium (an undetermined older version). |
Hi, I am coming back to code that used to work.
Now when calling b$View() I immediately get
"Debugging connection was closed. Reason: WebSocket disconnected"
When I click reconnect devtools it immediately disconnects.
Is this some IT security thing?
The text was updated successfully, but these errors were encountered: