We recently (in the past two weeks) discovered a very strange behavior in one of our production apps, which ran flawlessly for the last couple of months. There wasn't a deployment in over three months, either.
Somehow, a small portion of our user base (including some of our devs) are getting random 500 Internal Server Errors on PUT/POST requests, but none of them is visible on the backend on the server logs nor in Application insights.
Application insights itself logs those errors from the angular app with Status Code 0, which adds up to the confusion.
Interestingly, Any GET or DELETE request runs without any problem.
The response (body) is nonexistent, which is strange as well.
Somehow, the timing tab in the Chrome dev tools only goes to initial connection, but it appears that no request/response is really handled/shown there, what would match up with the empty response.
That's really all from Application Insights:
We added some custom error logging in the Angular Application, but all the errors are undefined and definitely not coming from our API.
Some other important information:
Are there any known issues with this constellation? We are running out of ideas at this point.
The individual OPTIONS requests are successful:
EDIT: The very same request that fails from Angular works (Dev Tools → Copy → Fetch) in the same tabs browser console.
I am getting an error from Microsoft Azure's side which is affecting app services all over. For many (us included) the issue goes away if you set your app service to use http1.1 instead of http2 in your app service configuration.
The issue has been escalated within Microsoft and they are indicating that they are working on fix. You will find this link useful: https://learn.microsoft.com/en-us/answers/questions/1687258/our-azure-app-service-application-started-to-exper?comment=question