asp.net core 2 Web API timeout issue

adding requestTimeout to web.confg solved my timeout.

<aspNetCore requestTimeout="00:20:00" processPath="dotnet" arguments=".\project.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />

Better approach is to Kick off request and then poll the result as suggested by @steve-land


I realise that this isnt specifically answering your question, but I'd suggest that the problem here is more the slow request - not any related IIS/Postman/.Net pipeline timeout(s).

Have you considered changing your workflow to make a single request to kick off the process and then polling for the result?

E.g.

  1. Make a POST request to start the process on a background thread / task management processor, and immediately receive some kind of process Id identifying your new process.

  2. Periodically poll another GET endpoint using the processId as a parameter, continuing until you eventually receive the result once the process is complete.