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
    
    
  '.NET > ASP.NET' 카테고리의 다른 글
| [ASP.NET Core] ASP.NET Core API에 ReactJS 배포하기 (0) | 2021.06.01 | 
|---|---|
| [ASP.NET Core] MailKit 사용 (0) | 2021.05.28 | 
| [ASP.NET Core] IIS 호스팅 (0) | 2021.03.30 | 
| [ASP.NET Core Web API] Action Method - 응답 (0) | 2021.03.26 | 
| [ASP.NET Core Web API] CORS (0) | 2021.03.25 |