I have angular SPA and .NET web API. One functionality is file upload, which usually works fine, but sometimes I am getting random ERR_CONNECTION_RESET errors which I can't explain.
They only occur on PDF files and they are completely random. The file can be 50kb, or 5MB. Sometimes you can upload one file normally, later the same file fails 5 times. Funny thing is, the file is still sent and processed on the server, but I looks like something cancel/ignore upcoming response.
One more problem is that this can only be reproduced when the apps are deployed on the server, when I debug it locally, everything works fine.
Any idea what could be the problem? Honestly I don't know what should I even look for. Is this the API problem, or the ANgular application?