Closed amancevice closed 2 years ago
Thanks for filing! Will be useful if anyone else runs into it. Sounds like Websockets are broken on the MacOS beta
@amancevice have you tried using a different browser? Wondering if they're broken on Safari, or if macOS Monterey beta has some kind of new security firewall that accidentally broke websockets. Might also be good to poke around in the macOS issue tracker
@nicks thanks & sorry for the delay — I was out of town for a while but am back in front of my M1 iMac — I just upgraded to the latest macOS public beta and can confirm that:
I'll poke around and see what I can find
@nicks Looks like something changed when handling websockets in Safari 15. It still works on other websites, tested on socket.io website.
Edit: works fine on Safari 15 / BigSur 11.6 (Intel)
JS console reports:
WebSocket connection to 'ws://localhost:10350/ws/view' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)
It doesn’t work on the iPad (all browsers using port forward to access localhost:10350)
Also seeing this:
WebSocket connection to 'ws://localhost:10350/ws/view' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)
Safari 15.0 macOS 12.0
i can repro after upgrading to Monterey! though not sure what's going on yet :thinking:
Looks like a bug in Safari's new NSURLSession Websocket feature, which got turned on by default in Monterey.
You can go to Develop -> Experimental Features -> NSURLSession Websocket
to turn it off, and the tilt UI will work OK.
Here's some interesting discussion on this: https://github.com/gorilla/websocket/issues/696 https://github.com/gorilla/websocket/issues/731#issuecomment-949021678
Not super familiar with websocket messaging, but looks like they now declare they support Sec-WebSocket-Extensions: permessage-deflate
, but didn't actually implement it correctly :angry:
Looks like a bug in Safari's new NSURLSession Websocket feature, which got turned on by default in Monterey.
You can go to
Develop -> Experimental Features -> NSURLSession Websocket
to turn it off, and the tilt UI will work OK.
Works on the iPad too 😬
Expected Behavior
tilt up [space]
should open the Tilt GUICurrent Behavior
UI is a blank page with the text
Loading...
Inspecting the console there is an error connecting to the websocket:
Steps to Reproduce
tilt up [space]
Context
tilt doctor
OutputAbout Your Use Case
Not an urgent issue as Tilt works fine on my work machine, just raising as a potential issue for future users