Azure / Azure/azure-functions-core-tools
HTTP triggered functions crash on Mac with Grpc.Core.RpcException
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 15
Description
HTTP triggered functions crash on Mac OS with this exception:
`Unhandled exception. Grpc.Core.RpcException: Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.", DebugException="System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.")`
This is happening for any HTTP triggered functions. Even with the **Http Trigger template**. Same codebase works on Windows 10 and on Azure.
**Steps to reproduce the error:**
1. Create a new project with `func init MyProjFolder --worker-runtime dotnet-isolated`
2. Add an HTTP trigger with `func new --template "Http Trigger" --name MyHttpTrigger`
3. Navigate to MyProjFolder and start the function with `func start`
**Environment details:**
- Azure Function Core Tools version: 4
- .NET versions: 7 and 8 (isolated)
- OS: macOS Sonoma version 1.4.12
- CPU architecture: x64
- worker model: dotnet-isolated
Contributor guide
Research direction
Reproduce the failure with the listed `func init`, `func new`, and `func start` commands on macOS using the dotnet-isolated worker. Compare the HTTP/2 and gRPC startup behavior with the stated Windows and Azure environments. Done means an HTTP-triggered function starts and handles requests without the reported `Grpc.Core.RpcException`.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, grpc
- Domain
- api, backend, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100