I'm having some difficultly using the sample code here https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-java and deploying the application locally. I am also using the gradle plugin here https://github.com/microsoft/azure-gradle-plugins/wiki/Azure-Functions-Gradle-Plugin-(Preview).
It seems that I am able to deploy the application successfully as I get the following:
Azure Functions Core Tools
Core Tools Version: 3.0.3160 Commit hash: 00aa7f43cc5c5f15241b5e6e5363256f19ceb990
Function Runtime Version: 3.0.14916.0
[2021-01-12T18:28:46.884Z] Failed to start Worker Channel. Process fileName:
[2021-01-12T18:28:46.885Z] System.Diagnostics.Process: No such file or directory.
[2021-01-12T18:28:46.965Z] Listening for transport dt_socket at address: 5005
Functions:
HttpExample: [GET,POST] http://localhost:7071/api/HttpExample
However, every-time I try to access http://localhost:7071/api/HttpExample the response hangs and I eventually get the following log
[2021-01-12T18:35:56.112Z] System.Private.CoreLib: Exception while executing function: Functions.HttpExample. System.Net.Http: Connection refused. System.Private.CoreLib: Connection refused
Additionally, when running this locally without the gradle task I get the following:
/usr/local/Cellar/azure-functions-core-tools@3/3.0.3160/func host start --language-worker -- -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 --verbose
[2021-01-12T19:00:40.199Z] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.).
[2021-01-12T19:00:40.221Z] Listening for transport dt_socket at address: 5005
For detailed output, run func with --verbose flag.
Anyone have suggestions?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…