With debugger attached WaitForAngularCliServerToAcceptRequests never returns #99

Closed
opened 2025-08-09 17:15:00 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @martinstenhoff on 4/16/2018

When launching an angular spa project, created from the aspnet core 2.1.0 preview2 templates, from Visual Studio 2017 15.7.p3 using F5 (either using iisExpress or Kestrel) the await client.SendAsync call below consistently takes longer than the allowed 1 second on my machine (Dell XPS 9550 i7) causing this method to never return.
7f550fb469/src/Microsoft.AspNetCore.SpaServices.Extensions/AngularCli/AngularCliMiddleware.cs (L110-L123)

I've put a System.Diagnostics.Stopwatch around it (after increasing the timeout to 10s) and I never saw it take less than 1.3s (usually it was between 2 - 3.5 seconds).

Perhaps this is also related to #1588 where we're slowed down by having to resolve localhost.
I don't see this with VS 15.6 and AspNet Core 2.0 (I haven't yet tested VS 15.7.p3 with AspNetCore 2.0)

*Originally created by @martinstenhoff on 4/16/2018* When launching an angular spa project, created from the aspnet core 2.1.0 preview2 templates, from Visual Studio 2017 15.7.p3 using F5 (either using iisExpress or Kestrel) the `await client.SendAsync` call below consistently takes longer than the allowed 1 second on my machine (Dell XPS 9550 i7) causing this method to never return. https://github.com/aspnet/JavaScriptServices/blob/7f550fb4698eba34fc234b4ece7630d8efde73cb/src/Microsoft.AspNetCore.SpaServices.Extensions/AngularCli/AngularCliMiddleware.cs#L110-L123 I've put a System.Diagnostics.Stopwatch around it (after increasing the timeout to 10s) and I never saw it take less than 1.3s (usually it was between 2 - 3.5 seconds). Perhaps this is also related to #1588 where we're slowed down by having to resolve localhost. I don't see this with VS 15.6 and AspNet Core 2.0 (I haven't yet tested VS 15.7.p3 with AspNetCore 2.0)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#99
No description provided.