You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can call apigateway endpoints without any problems.
But swagger doesn't see service endpoints i checked logs and see this warning.
warn: Ocelot.Responder.Middleware.ResponderMiddleware[0]
2024-10-30 21:04:21 requestId: 0HN7P2MKOVR6R:00000001, previousRequestId: No PreviousRequestId, message: 'Error Code: UnableToFindDownstreamRouteError Message: Failed to match Route configuration for upstream path: /, verb: GET. errors found in ResponderMiddleware. Setting error response for request path:/, request method: GET'
also i run this command from container and it works fine.
curl http://points-service:5001/swagger/v1/swagger.json
Please help me with this i new at the ocelot, and doesn't understand what am i doing wrong.
The text was updated successfully, but these errors were encountered:
Fixed issue UseSwagger() .UseSwaggerUI() Can't be used with. UseSwaggerForOcelotUI(). They are cover each other.
After removing UseSwagger and UseSwaggerUI everything works good))
ocelot.json
Hello . I attached ocelot.json file.
Here is how i configure it
Also here is my docker-compose.yml file code
And appsettings.json code
I can call apigateway endpoints without any problems.
But swagger doesn't see service endpoints i checked logs and see this warning.
warn: Ocelot.Responder.Middleware.ResponderMiddleware[0]
2024-10-30 21:04:21 requestId: 0HN7P2MKOVR6R:00000001, previousRequestId: No PreviousRequestId, message: 'Error Code: UnableToFindDownstreamRouteError Message: Failed to match Route configuration for upstream path: /, verb: GET. errors found in ResponderMiddleware. Setting error response for request path:/, request method: GET'
also i run this command from container and it works fine.
curl http://points-service:5001/swagger/v1/swagger.json
Please help me with this i new at the ocelot, and doesn't understand what am i doing wrong.
The text was updated successfully, but these errors were encountered: