The problem is, the POST request ended in an exception.
InvalidOperationException: The following endpoints with a duplicate endpoint name were found.
Endpoints with endpoint name 'robotstxtroute':
Route: robots.txt
Route: robots.txt
Endpoints with endpoint name 'xmlsitemaproute':
Route: sitemap.xml
Route: sitemap.xml
Endpoints with endpoint name 'xmlsitemaplocaleroute':
Route: {localePath}/sitemap.xml
Route: {localePath}/sitemap.xml
Endpoints with endpoint name 'sitemapindexroute':
Route: sitemapindex.xml
Route: sitemapindex.xml
The controller eg. "SEOCheckerRobotsTxtController" is added twice on a POST request, found by debugging EndpointNameAddressScheme.Initialize() method.
I figured out that this is happening when the "ufprt" is given in the payload.
This error is shown on BeginUmbracoForm with a SurfaceController as action too.
SEOChecker and Umbraco Forms are not working together - duplicated endpoint
I get stuck on something weird behavior.
SEOChecker: 10.0.4 Umbraco: 10.5 Umbraco Forms: 10.2
The problem is, the POST request ended in an exception.
The controller eg. "SEOCheckerRobotsTxtController" is added twice on a POST request, found by debugging EndpointNameAddressScheme.Initialize() method.
I figured out that this is happening when the "ufprt" is given in the payload.
This error is shown on BeginUmbracoForm with a SurfaceController as action too.
Has anyone an idea?
Hi,
Not sure what to do? I register this once during startup of the app.
What exactly do you register during startup?
Using a composer in Umbraco this is registered
I tried this but the same error again.
Did you test it with Umbraco Forms and submit a form?
I just did,
No errors on submit, no errors in log.
I figured out, what is causing the problem.
The problem was i used the WidthMiddleware instead of WithCustomMiddleware.
WithMiddleware is calling Pre and Post pipelines aswell, WithCustomMiddle not.
Thanks
Great it's solved
is working on a reply...