Comments (12)
Hi,
thanks for your reports and aditional informations.
It helped me reproduce this problem.
I'll fix it in next release v2.0
. After finished issue #56.
As a workaround you can downgrade to version 1.8
Thank you and apologize.
from mmlib.swaggerforocelot.
u
I just downgraded to v. 1.8.0, and the problem is removed.
"ReRoutes": [
{
"UpstreamPathTemplate": "/services/Crm/{everything}",
"UpstreamHttpMethod": [ "Get", "Post" ],
"DownstreamPathTemplate": "/api/v1/Crm/{everything}",
"DownstreamScheme": "http",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 54199
}
],
"SwaggerKey": "CRMApi"
}
],
"SwaggerEndpoints": [
{
"Key": "CRMApi",
"Config": [
{
"Name": "CRM Api",
"Version": "v1",
"Url": "http://localhost:54199/swagger/v1/swagger.json"
}
]
}
],
"GlobalConfiguration": {
"BaseUrl": "http://localhost:5051"
}
}
from mmlib.swaggerforocelot.
I have the same issue, running version 1.9.0. Could this be related to #51 ?
from mmlib.swaggerforocelot.
Perfect thank you. With version 1.8 it works for me too.
from mmlib.swaggerforocelot.
Hi @xsilviox
Please can you provide ocelot.json
configuration and swagger.json
of downstream service?
Thanks.
from mmlib.swaggerforocelot.
Having same issue - normal posting works fine tho.
So guess this is only an issue in the swagger part.
from mmlib.swaggerforocelot.
Hi @mourier
Please can you provide ocelot.json configuration and swagger.json of downstream service?
Thanks.
from mmlib.swaggerforocelot.
@Burgyn
swagger,json for just one of the downstreams - but every one is affected.
from mmlib.swaggerforocelot.
Fixed in version 1.10.2
from mmlib.swaggerforocelot.
Hi Could you please help me out?
Using v1.10.2
.Net Core 3.1
Request URL Error: localhost://5003/auth-service/v1/Authentication
Expected: http://localhost:5003/auth-service/v1/authentication
from mmlib.swaggerforocelot.
Hi @ThiyagarajanVellaichamy,
Please, Can you create new issue for it an provide ocelot.json
.
Thanks.
from mmlib.swaggerforocelot.
Hi @ThiyagarajanVellaichamy,
Please, Can you create new issue for it an provideocelot.json
.Thanks.
{
"ReRoutes": [
{
"DownstreamPathTemplate": "/api/{everything}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 5001
}
],
"UpstreamPathTemplate": "/auth-service/{everything}",
"UpstreamHttpMethod": [ "Get", "Post" ],
"SwaggerKey": "authswagger",
"VirtualDirectory": "/authswagger"
}
],
"SwaggerEndPoints": [
{
"Key": "gateway",
"TransformByOcelotConfig": false,
"Config": [
{
"Name": "Gateway",
"Version": "v1",
"Url": "https://localhost:5003/swagger/v1/swagger.json"
}
]
},
{
"Key": "authswagger",
"Config": [
{
"Name": "Authentication API",
"Version": "v1",
"Url": "https://localhost:5001/api/swagger/v1/swagger.json"
}
]
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost"
}
}
from mmlib.swaggerforocelot.
Related Issues (20)
- Getting 404 when running with KubernetesServiceDiscoveryProvider HOT 1
- Wrong Swagger url generated when using KubernetesServiceDiscoveryProvider HOT 1
- Failed to load API definition issue HOT 17
- OpenApi fails on reading file HOT 2
- Virtual Directory configuration IIS doesn't work UpstreamPathTemplate 404 not found HOT 1
- Request: Api Search across all swagger docs HOT 2
- Added ApiController to Ocelot Gateway, but gets 404 when requesting it HOT 4
- Ocelot Gateway controllers return enum values as integer instead of string. HOT 1
- A bug when using .NET8-Ocelot[20.*]
- Status code 500 using 8.1.0 with multiple routes HOT 1
- Failed to load API definition - value cannot be null HOT 1
- getting error when use service discovery HOT 7
- Cant send code_challenge when using SwaggerForOcelot
- Error with gateway hosted under https://example.com/internal-gateway instead of https://example.com
- Using the Consul service discovery, it was found that the request path in the gateway swagger document does not have the "KeyToPath" property attached
- Can you still customize your base URL in newer versions
- The swagger is not shown
- MMLib.SwaggerForOcelot failed to generate aggregate document
- Allow InjectJavascript and InjectStylesheet on the UseSwaggerForOcelotUI method HOT 1
- Default path to downstream Swagger JSON does not respect service version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmlib.swaggerforocelot.