dev-proxy icon indicating copy to clipboard operation
dev-proxy copied to clipboard

[Get started]: WSL install instructions

Open garrytrinder opened this issue 3 years ago • 3 comments

Suggested by @gavinbarron https://github.com/microsoftgraph/msgraph-developer-proxy/issues/71#issuecomment-1349707497

We currently provide install instructions for Windows and macOS in the Get started section.

We should also provide instructions for WSL (Windows Subsystem for Linux).

garrytrinder avatar Dec 14 '22 21:12 garrytrinder

Am curious about the WSL implementation. I would love to have this in WSL because that is where I do 90%+ of my development. I installed the proxy on my host Windows OS and that is successfully intercepting traffic from solutions running in Linux (as well as Windows.) I get a message that I need to restart WSL each time I turn the Windows proxy on/off. If I install and run the proxy in WSL, it says I need to configure my OS.

DonKirkham avatar Aug 14 '23 14:08 DonKirkham

Thanks for the feedback @DonKirkham, I had noticed the WSL message when running the proxy in Visual Studio.

image

Not sure what we can do about that from the proxy side, but it's great to hear that it works OOTB with WSL when running proxy on the Windows OS.

When running the proxy in WSL, you need to configure the proxy manually in the same way that macOS users currently have to so (see https://github.com/microsoft/m365-developer-proxy/wiki/Using-the-proxy-for-the-first-time#1-start-the-proxy) so the message you are seeing is expected behaviour.

garrytrinder avatar Aug 21 '23 08:08 garrytrinder

It sounds like an OS-thing, rather than a proxy-thing that we could control. We've got two options: use the proxy on the host, with the caveat that you need to restart WSL or run it inside WSL and configure like on macOS. It would be good to document the two options in our manual.

waldekmastykarz avatar Aug 22 '23 07:08 waldekmastykarz