Skip to content

[WebToolsE2E][Aspire] The endpoint for 'functionapp1' displays 'Hmmm...can't reach this page' when running Aspire Starter 9.2 with an Azure Functions project. #8500

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

Closed
vmykagapuz opened this issue Apr 2, 2025 · 10 comments
Labels
area-integrations Issues pertaining to Aspire Integrations packages azure-functions Issues related to the Azure Functions integration
Milestone

Comments

@vmykagapuz
Copy link

vmykagapuz commented Apr 2, 2025

REGRESSION INFO

  1. Worked in Aspire 9.1.0

INSTALL STEPS

  1. Clean machine: Win11 x64 24h2 ENU
  2. Install VS 17.13.5
  3. Add dotnet9 feed for 9.2.0-preview.1
  4. Install the latest Aspire 9.2.0-preview.1 templates
    dotnet new install Aspire.ProjectTemplates::9.2.0-preview.1.25201.19 --force
  5. Install Docker Desktop

NOTE

  1. This issue does not reproduce in 8.0 framework

REPRO STEPS

  1. New project > .NET Aspire Starter App > .NET 9.0 > .NET Aspire version (9.2) > Create
  2. Right click solution > Add > New Project > Azure Functions > .NET 9.0 Isolated > Check 'Enlist in .NET Aspire orchestration' > Create
  3. Build and F5
  4. Click the endpoint for 'functionapp1' project

ACTUAL
The page displays 'Hmmm...can't reach this page'
Image

EXPECTED
The page should display 'Your Functions 4.0 app is up and running'
Image

@vmykagapuz vmykagapuz changed the title [WebToolsE2E][Aspire] The endpoint page for 'functionapp1' displays 'Hmmm...can't reach this page' when running Aspire Starter 9.2 with an Azure Functions project. [WebToolsE2E][Aspire] The endpoint for 'functionapp1' displays 'Hmmm...can't reach this page' when running Aspire Starter 9.2 with an Azure Functions project. Apr 2, 2025
@davidfowl
Copy link
Member

Did you look at the logs?

@davidfowl davidfowl added area-integrations Issues pertaining to Aspire Integrations packages azure-functions Issues related to the Azure Functions integration and removed area-templates labels Apr 2, 2025
@davidfowl davidfowl added this to the 9.2 milestone Apr 2, 2025
@vmykagapuz
Copy link
Author

vmykagapuz commented Apr 3, 2025

Did you look at the logs?

May I know where to check the logs for this issue?

@davidfowl
Copy link
Member

These buttons should show the console logs for a resource:

Image

@vmykagapuz
Copy link
Author

This is the logs for functionapp1 after navigating to the endpoint

Image

@davidfowl
Copy link
Member

Is it possible that you just hit the url too early before the functions app is healthy?

@vmykagapuz
Copy link
Author

Tried to check the health state first before clicking the endpoint and its Healthy.

Image

@davidfowl
Copy link
Member

There are no health checks on the functions project resource, so healthy in this case means the app is running.

@v-elenafeng
Copy link

v-elenafeng commented Apr 7, 2025

@davidfowl @balachir This doesn't look like a specific issue with .net9, and it‘s also reproduced with .net 8 target (unlike mentioned in the bug note), where we can see the function app by navigating to [http://localhost:7071/api/Function1 instead of the endpoint in the dashboard.

Image

But when aspire is not introduced, the port it actually runs on is the port given in launch.settings.json.
Image

@davidfowl davidfowl modified the milestones: 9.2, Backlog Apr 7, 2025
@davidfowl
Copy link
Member

Moving this out of 9.2 I think the fix here is to add an http health check to functions projects (likely the template).

@balachir
Copy link

balachir commented Apr 7, 2025

@davidfowl @v-elenafeng I investigated this some more and there seems to be a regression with Functions + Aspire scenario in Aspire 9.2 compared to Aspire 9.1. I found clearer repro steps and opened a separate issue #8589, which we may want to fix for 9.2.

I'll close this one as a dupe of that one.

@vmykagapuz

@balachir balachir closed this as completed Apr 7, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-integrations Issues pertaining to Aspire Integrations packages azure-functions Issues related to the Azure Functions integration
Projects
None yet
Development

No branches or pull requests

4 participants