-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WebToolsE2E][Aspire][MacOS][Unstable]Debugging Aspire project using "dotnet watch", Safari browser page displays the error "Can't connect to the server" and manually refresh the browser can display the correct page. #1008
Comments
Verify this issue using aspire 8.0 preview 1, the third time using dotnet watch to debug the project can meet the bug, added the REGRESSION INFO as "Not a Regression". |
This seems like it could be a timing issue in that the browser gets launched by @davidfowl could this be related to the decoupling of the dashboard from Aspire.Hosting? How is the "Now listening on.." message printed to the console coordinated to ensure it only happens once the server is running in the new design? |
Currently dashboard starts after calls to start projects/containers. I think purpose of current way was to make sure things are starting to run when we show dashboard rather than empty dashboard. Perhaps dotnet watch could launch browser after "Now listening on.." appears. |
I'm pretty sure that's what it does already as that logic is in |
@lemon0213 @v-cazhang this seems to be a 'dotnet watch' scenario on macOS. Does this issue still reproduce using Aspire 8.0 P2? How about when using latest Aspire 8.0 P3 builds? |
@balachir Verified today, this issue does not repro on Aspire 8.0 P2, but it still repro using latest Aspire 8.0 P3 builds (8.0.0-preview.3.24072.7). |
@kvenkatrajan should this be in P5, P6, or postponed? |
@adamint can you try reproing this in safari please? |
@kvenkatrajan the issue (can't reach this page) appears in all browsers, and the specific safari behavior is reproducible |
Blocked on above linked sdk issue |
@adamint , On Mac OS arm64 aspire preview 5 [8.0.0-preview.5.24201.12] + .NET 8.0.204 SDK(latest-released-build) with safari version 17.4.1 (19618.1.15.11.14), this issue is not repro with 'dotnet watch' / 'dotnet run -lp http/https'. |
@kvenkatrajan will take a look to see if there is something to fix for 8.1 and to check if this still repros. |
This issue does reproduce with dotnet watch on Mac, all browsers. Also reproduces in VSCode with the above steps. |
@kvenkatrajan is there anything to fix for 9.0 here? |
There is not, the linked sdk issue is still active. |
REGRESSION INFO: Not a Regression
INSTALL STEPS
sudo dotnet workload update --skip-sign-check --interactive --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json
sudo dotnet workload install aspire --skip-sign-check --interactive --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet8/nuget/v3/index.json
REPRO STEPS
NOTE:
ACTUAL
The Safari browser page displays the error "Can't connect to the server", then manually refresh the browser multiple times can display the correct page.
EXPECTED:
The Safari browser can automatically refresh to the correct page.
The text was updated successfully, but these errors were encountered: