Get help from the marimo community

Updated last month

GitHub copilot unable to connect when using VSCode port forwarding

At a glance

The community member is experiencing an issue with Copilot, a feature in their Marimo notebook, when using Visual Studio Code's port forwarding feature. Specifically, when running the Marimo notebook locally on their laptop, Copilot works as expected, but when they connect to the same Marimo notebook using the forwarded address, Copilot stops working, and they receive a websockets.exceptions.InvalidURI error. The community member is asking for ideas on why this is happening and how to fix the issue.

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?
Add a reply
Sign up and join the conversation on Discord