I have a really confusing issue, mainly because the exception I'm getting is very unhelpful and non-descriptive.
I have an ASP.Net Core-based API, and have just added a new controller. I am using ASP.Net Core 3.0, and am mapping my controllers within Startup.Configure by using the following:
app.UseEndpoints(endpoints => { endpoints.MapControllers(); });
However, when running the API in debug I was getting the following exception on startup:
RoutePatternException: There is an incomplete parameter in the route template. Check that each '{' character has a matching '}' character.
I removed the controller and the issue disappears, so I figure there's something wrong with the controller that's causing the endpoint mapping to throw this exception but I can't see what it is?