micro-elements/MicroElements.Swashbuckle.FluentValidation

Ocelot throw 404 when i call any method after update MicroElements.Swashbuckle.FluentValidation from 4.3.0 to 5.2.0

inyutin-maxim opened this issue · 2 comments

Before update

[19:50:51[19:50:51 INF] Request starting HTTP/1.1 GET http://localhost:6029/api/OrganizationProfile/GetOrganizationProfiles - -
[19:50:51 DBG] The request path /api/OrganizationProfile/GetOrganizationProfiles does not match a supported file type
[19:50:51 DBG] The request path  does not match the path filter
[19:50:51 DBG] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: ocelot pipeline started
[19:50:51 DBG] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: Upstream url path is /api/OrganizationProfile/GetOrganizationProfiles
[19:50:51 DBG] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: downstream templates are /{everything}
[19:50:51 INF] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: EndpointRateLimiting is not enabled for /{everything}
[19:50:51 INF] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: No authentication needed for /api/OrganizationProfile/GetOrganizationProfiles
[19:50:51 DBG] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: Downstream url is http://test-mnr-api-01.reo.local:6003/api/OrganizationProfile/GetOrganizationProfiles
[19:50:51 INF] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: 200 (OK) status code, request uri: http://test-mnr-api-01.reo.local:6003/api/OrganizationProfile/GetOrganizationProfiles
[19:50:51 DBG] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: setting http response message
[19:50:51 DBG] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: no pipeline errors, setting and returning completed response
[19:50:51 DBG] requestId: 0HMAO64L1GTUU:00000004, previousRequestId: no previous request id, message: ocelot pipeline finished
[19:50:51 DBG] Connection id "0HMAO64L1GTUU" completed keep alive response.
[19:50:51 INF] Request finished HTTP/1.1 GET http://localhost:6029/api/OrganizationProfile/GetOrganizationProfiles - - - 200 1205 application/json;+charset=utf-8 233.2130ms

After update

[19:47:33 INF] Request starting HTTP/1.1 GET http://localhost:6029/api/OrganizationProfile/GetOrganizationProfiles - -
[19:47:33 DBG] The request path /api/OrganizationProfile/GetOrganizationProfiles does not match a supported file type
[19:47:33 DBG] The request path  does not match the path filter
[19:47:33 DBG] Connection id "0HMAO62QMN6H8" completed keep alive response.
[19:47:33 INF] Request finished HTTP/1.1 GET http://localhost:6029/api/OrganizationProfile/GetOrganizationProfiles - - - 404 0 - 13.0840ms

Sorry for long response time - I am on vacations now.
I cant see any swagger related request. Swashbuckle adds own middleware to asp net core that responds to the "swagger" endpoint. MicroElements.Swashbuckle.FluentValidation just plugs in schema generation process.

If you remove MicroElements stuff does all work?

Sorry for long response time - I am on vacations now.
I cant see any swagger related request. Swashbuckle adds own middleware to asp net core that responds to the "swagger" endpoint. MicroElements.Swashbuckle.FluentValidation just plugs in schema generation process.

If you remove MicroElements stuff does all work?

Yes, when I delete your package or downgrade for version 4.3.0, my gateway project work correctly.
Error after installation package version 5.0.0+