GitHub copilot unable to connect when using VSCode port forwarding
When running a marimo notebook locally on my laptop copilot works as it should, but when I use the Visual Studio Code port forwarding feature and I connect to the same marimo notebook using the forwarded address, copilot stops working and I get a
websockets.exceptions.InvalidURI: http://localhost:2918/copilot isn't a valid URI: scheme isn't ws or wss
.
Any idea why this is happening? And how can this be fixed?Port forwarding local services with VS Code
Make your local web services accessible over the internet with Visual Studio Code
1 Reply
Someone will reply to you shortly. In the meantime, this might help: