Ends in:
2 DAYS
4 HRS
36 MIN
7 SEC
Ends in:
2 D
4 H
36 M
7 S
Open Closed

The request matched multiple endpoints. #8402


User avatar
0
carl.hallqvist created
  • ABP Framework version: v8.3.2
  • UI Type: Blazor WASM
  • Database System: EF Core SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

Using Microservice template and got this in when trying out an endpoint in a microservice. I am using the auto controller feature, so I have not defined any controllers.

[22:50:26 ERR] An unhandled exception has occurred while executing the request. Microsoft.AspNetCore.Routing.Matching.AmbiguousMatchException: The request matched multiple endpoints. Matches:

Customer Ticket at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ReportAmbiguity(Span1 candidateState) at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.ProcessFinalCandidates(HttpContext httpContext, Span1 candidateState) at Microsoft.AspNetCore.Routing.Matching.DefaultEndpointSelector.Select(HttpContext httpContext, Span`1 candidateState) at Microsoft.AspNetCore.Routing.Matching.DfaMatcher.MatchAsync(HttpContext httpContext) at Microsoft.AspNetCore.Cors.Infrastructure.CorsMiddleware.Invoke(HttpContext context, ICorsPolicyProvider corsPolicyProvider) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.ReflectionMiddlewareBinder.<>c__DisplayClass6_0.


1 Answer(s)
  • User Avatar
    0
    carl.hallqvist created

    Never mind.. configuration issues..

    "Customer": {
            "ClusterId": "Customer",
            "Match": {
              "Path": "/api/customer/{**catch-all}"
            }
          },
          "CustomerSwagger": {
            "ClusterId": "Customer",
            "Match": {
              "Path": "/swagger-json/Customer/swagger/v1/swagger.json"
            },
            "Transforms": [
              {
                "PathRemovePrefix": "/swagger-json/Ticket"
              }
            ]
          }
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35