-
Notifications
You must be signed in to change notification settings - Fork 468
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
Azure Function not loaded with specific host settings - logging #6660
Comments
@petrkasnal Thanks for reporting this issue! I took at stab and trying your repro and noticed the following exception at startup:
I believe this is related to the fact that the builder.AddAzureFunctionsProject<Projects.AzureFunctionsTest_Functions>("funcapp")
.WithReference(messaging)
.WithReference(messaging2)
.WithReference(messaging3)
.WithReference(messaging4)
.WithReference(messaging5)
.WithReference(messaging6);
//.WithReference(eventHubs);
//.WithReference(serviceBus); Once I re-enable the event hubs resource, things seem to work fine there. You also mentioned that you're seeing the following DCP exception:
In the past, I've seen this happen when the functions process fails to start. This might be related to the issues you are seeing in #6661. Do you repro this when launching from the command line via |
I edited the repository. I left really just the function execution to show that it doesn't matter if something is attached to it.
If the Aspire starts, the function doesn't run. If a line is added to host.json as in the specification - I just tried using
|
@petrkasnal Can you verify what version of the Azure Functions Core Tools you are using? Running:
should get this info. |
@captainsafia sure - 4.0.5907 |
@petrkasnal Ah, I see. Your version is about 6 months old. Can you try upgrading to the latest? It should be 4.6610. |
@captainsafia I promoted the version. However, it didn't help, it's still the same.I tried running from visual studio and using dotnet run. |
Is there an existing issue for this?
Describe the bug
When I use the Azure Function in Aspire, a strange behavior occurs when I have this block in host.json. It happened in the previous version 9.0 as I mention here and it happens now in version 9.1.0-preview.1.24561.5.
What happens is that Aspire starts and shows the function loading, which eventually doesn't load and after 120 seconds it throws Failed to start. I used the example repository for Azure Function in Aspire.
I prepared repository - https://github.com/petrkasnal/AspireHostProblem
Expected Behavior
I would expect the logging settings to have no effect on Azure function execution. It's holding us back now because I have to keep overwriting it and that's not very convenient.
Steps To Reproduce
Open repository - https://github.com/petrkasnal/AspireHostProblem
Run AzureFunctionsTest.AppHost project
If you edit host.json - comment line "Default": "Debug" and starts work
Exceptions (if any)
No response
.NET Version info
9.0.0-rc.2.24473.5
Anything else?
No response
The text was updated successfully, but these errors were encountered: