You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an ASP.NET Core Web Api (.NET 5) using the Protobuf formatter to serialize responses. When my controller returns a large amount of data the client gets a 200 OK response, but no data.
I reproduced it by creating a new empty web api project (running locally with iisexpress). Adding version 3.0.0 of WebApiContrib.Core.Formatter.Protobuf and configuring it in the Startup like this:
I query this endpoint with the code below. It works fine when count is small. If I increase it to 5.000.000 or more it doesn't. It works if I use Json.
I have an ASP.NET Core Web Api (.NET 5) using the Protobuf formatter to serialize responses. When my controller returns a large amount of data the client gets a
200 OK
response, but no data.I reproduced it by creating a new empty web api project (running locally with iisexpress). Adding version 3.0.0 of WebApiContrib.Core.Formatter.Protobuf and configuring it in the Startup like this:
Then I modified the default
WeatherForecastController
to look like this:I query this endpoint with the code below. It works fine when
count
is small. If I increase it to 5.000.000 or more it doesn't. It works if I use Json.Using Fiddler, I can see the data is not returned from the API
Am I doing something wrong or is there an issue here? Why am I getting a 200 OK even though I'm not getting a response?
Appreciate any help
The text was updated successfully, but these errors were encountered: