services.AddSignalR(e => {
e.MaximumReceiveMessageSize = 102400000;
});
The proper solution is to implement your own hub between client and server and process in chunks and stick it together.
refer to : https://learn.microsoft.com/en-us/aspnet/core/signalr/streaming?view=aspnetcore-3.1
Fonte: https://stackoverflow.com/questions/60311852/error-connection-disconnected-with-error-error-server-returned-an-error-on-cl