This issue was reproduced against Microsoft.AspNetCore.OData version 9.2.1.
- Run the application.
- Perform a GET request to https://localhost:7162/api/v1/entities?variant=Typed
- An error will be returned in the console, and the response will terminate.
- Perform a GET request to https://localhost:7162/api/v1/entities?variant=Generic
- An error will be returned in the console, and the response will terminate.
- Perform a GET request to https://localhost:7162/api/v1/entities?variant=None
- No error will be returned. However, the serializer will process the response as an
IEnumerable, not anIAsyncEnumerable.