How to debug HTTP requests, toward Web Api, that remain Pending without entering Controller?
This is my request
curl "http://localhost:50086/foo/bar" -X OPTIONS -H "Access-Control-Request-Method: POST" -H "Origin: http://localhost:3333" -H "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 OPR/57.0.3098.116" -H "Access-Control-Request-Headers: content-type,x-auth-token" --compressed
There is nothing in EventLog and Debug console. Those pending requests occur at random time and wont go through before restarting application (in some cases they enter controller but after very long time).
I am using .net Core 2.2
too broad
, you need to add to your post and make this more specific or it may be closed before you get an answer. Add the code you are using to make these API requests to your post as well as what you mean by they occur at random times. – Ryan WilsonC# code
for making the request. – Ryan Wilson