.NET/ASP.NET
[ASP.NET Core Web API] 'IAsyncEnumerable Reader' reached the configured maximum size of the buffer when enumerating a value of type
클리엘
2021. 3. 30. 11:05
728x90
API 요청 시 아래와 같은 오류가 발생한다면
'IAsyncEnumerable Reader' reached the configured maximum size of the buffer when enumerating a value of type
Startup.cs에서 다음과 같이 MaxIAsyncEnumerableBufferLimit 설정값을 늘려줍니다.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers(mvcOptions =>
{
mvcOptions.MaxIAsyncEnumerableBufferLimit = [값];
});
}
[값] 부분에 원하는 값을 넣으면 되며 참고로 기본값은 8193입니다.
728x90