tfenster / TraefikForBC

Convenience scripts to ease traefik.io setup for BC containers on Azure VMs
MIT License
1 stars 2 forks source link

Modern Dev Endpoint #3

Open MikkelLevin opened 5 years ago

MikkelLevin commented 5 years ago

How would you configure launch.json to connect from VS Code? According to your blog post I think it could be: "server": "https://mdcbcdev0000008.westeurope.cloudapp.azure.com/", "serverInstance": "bc1dev", "authentication": "UserPassword", But it fails with the following: [2019-03-15 09:24:46.08] Sending request to https://mdcbcdev0000008.westeurope.cloudapp.azure.com:7049/bc1dev/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0 [2019-03-15 09:24:46.08] Sending request to https://mdcbcdev0000008.westeurope.cloudapp.azure.com:7049/bc1dev/dev/packages?publisher=Microsoft&appName=System&versionText=13.0.0.0 [2019-03-15 09:25:07.10] Error: An error occurred while sending the request. Unable to connect to the remote server A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

tfenster commented 5 years ago

almost :) The only additional thing is to override the port. If nothing is set, VS code assumes 7049 as you can see here in the log when VS code requests the symbols

https://mdcbcdev0000008.westeurope.cloudapp.azure.com: 7049 /bc1dev/dev/packages?publisher=Microsoft&appName=Application&versionText=13.0.0.0

However because everything needs to go through traefik, in this case 443 would be correct, so your launch.json would be something like this

"serverInstance": "bc1dev",
"authentication": "UserPassword",
"port": 443
MikkelLevin commented 5 years ago

Thanks. Did the trick. But I keep getting 'failed with code Unauthorized. Reason: Unauthorized' error. Very strange.

tfenster commented 5 years ago

Does the Web Client login work?

MikkelLevin commented 5 years ago

Yes. No problem with web client.

JeppeBylov commented 3 years ago

Is AAD authentication not supported in this scenario? I keep getting: image

tfenster commented 3 years ago

@JeppeBylov it should. But actually this repo is no longer current. Did you use the scripts from here or did you use bccontainerhelper?

JeppeBylov commented 3 years ago

I used BCContainerHelper, to create the container(s). WebClient works fine with AAD, but symbols only works with UserPassword Update: meaning I used Setup-Traefik... to create the traefik container

tfenster commented 3 years ago

@JeppeBylov then please open an issue in the navcontainerhelper repo, maybe Freddy has seen this issue before

JeppeBylov commented 3 years ago

Okay. Thanks.