When a request to my action gets called.. it sometimes works fine and in other cases shows Message='Cancelled'.
While checking trace messages in Azure application insights, the following is what I found..
The successful as well as unsuccessful requests went through create controller, select controller and select action.
After that the unsuccessful ones start giving Message='Cancelled' in FormatterParameterBinding.ExecuteBindingAsync, DefaultController.ExecuteAsync, HttpActionBinding.ExecuteBindingAsync.
Unlike the above, the successful ones show Message='Model state is valid in HttpActionBinding.ExecuteBindingAsync and InvokeActionAsync with Status 200(OK).
At first I thought that perhaps the data sent is not matching the model of action parameter but that is highly unlikely as we keep the data from client in localstorage and from there send it to the server, unless we receive status 200 from te call to server, we do not remove the data but send the previous data along with the new one next time. If the data did not match the model then in my view it will not match even the next time but here a call with certain data shows cancelled and later with the same data and more it shows success.
Can anyone with knowledge of webapi2 internals understand what the problem could be in this case.
Any help is sincerely appreciated.