C
C#3mo ago
reeeeeee

Random ERR_CONNECTION_RESET when uploading PDF files

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?
5 Replies
Sossenbinder
Sossenbinder3mo ago
Where is it deployed to? If it works locally, that seems to be the variable aspect I would target first
reeeeeee
reeeeeeeOP3mo ago
Windows server, on the IIS also if i am RDP'ed on the server, I also cant duplicate it oh and its not like it would load for a few seconds and then fail, it just fails directly
Sossenbinder
Sossenbinder3mo ago
Been a while since I've worked with iis, but did you try failed request tracing yet to get more insights?
reeeeeee
reeeeeeeOP3mo ago
I did not try that yet, gonna do now. But isn't it weird that the file still gets to the server and even successfully process and save?
Sossenbinder
Sossenbinder3mo ago
There's plenty of issues which can lead to that error. So it boils down to identifying the layer where it occurs I guess
Want results from more Discord servers?
Add your server