Open nrpriore opened 3 years ago
Did you ever find a solution for this? Timeout was updated to 5 min back around October in issue #3096 I believe, but I am also hitting that timeout.
@RicoSuter What are the possible causes of timeouts? I noticed you increased the time to 5 minutes, and our program consistently times out every 5 minutes. In our case we are using MSBuild, and the command is aspnetcore2openapi, but otherwise results in same issue reported in this issue.
We are pointing at csproj, instead of assembly, and we have noBuild set to true. We are using 13.9.4, updating to 13.11.1 or downgrading makes no difference.
we resolved it, we were missing [ApiController] Attribute, as soon as we added it to the controller, nswag doesn't hang anymore
Hmm, I think i saw something similar in the past where the ASP.NET Core API Explorer goes into an infinite loop or something (ie not in the NSwag code but when NSwag tries to query the APIs)... maybe this is fixed in .NET 5?
Also having this issue with MSBuild and NetCore31 using aspNetCoreToOpenApi
with csproj. Always hangs after it announces Duration: 00:00:03.0259005
Oddly starting a week ago or so - intermittently, nswag will fail with:
csproj file:
nswag file snippet:
At first, I double checked the value of
noBuild
& confirmed this was set to true, since I know this can cause an infinite loop. It indeed is and always has been set to true. It just sometimes works and sometimes times out & fails now. We've been using this successfully for months, but seemingly started recently.Any idea what could be causing this?