microsoft / botframework-components

The repository for components built by Microsoft for the Azure Bot Framework.
https://aka.ms/botdocs
MIT License
112 stars 80 forks source link

Wrong port in homepage #946

Open scheyal opened 3 years ago

scheyal commented 3 years ago

Create any bot. Navigate to homepage. Port # seems hardcoded - doesn't align with actual port. Better not to mention anything than to mislead or detect the port for display.

(I filed similar bug 6 month ago or so, but can't find it).

image

scheyal commented 3 years ago

Found it. Dup of microsoft/BotFramework-Composer#5846. Maybe use the opportunity to assign and fix.

scheyal commented 3 years ago

Oh, and using a new blank bot with latest runtime:

Version: 1.4.0-nightly.235590.f4de79 Electron: 8.2.4 Chrome: 80.0.3987.165 NodeJS: 12.13.0 V8: 8.0.426.27-electron.0

peterinnesmsft commented 3 years ago

Hi @scheyal,

We're in a bit of a weird in-between spot with this one. If the bot is run from Visual Studio using the default launchSettings provided, the bot actually does launch on http://localhost:3978 - so it's actually correct in that case. This is largely a holdover of where it came from originally, which is the original VA templates. Composer launches on a different port and overrides it via CLI argument on dotnet run, which is why it appears incorrect.

As this default page is served up as a simple static file, there's no way to bind to the actual port being used. We should address this post-R13. I'm moving to the backlog for later evaluation.