-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UpstreamHost not working #1925
Comments
Why do you think so? Our unit & acceptance tests are green! 😉
Maybe something wrong with the upgrade process...
Wow! Please provide more details: ocelot.json file, logs with errors info, and etc.
Sorry? What have you deleted and how? |
@nrllhylmz What's your full name? |
Ocelot 18.0.0 working but Ocelot 22.0.1 not working. Warnings;
My {
"Routes": [
{
"DownstreamPathTemplate": "/{everything}",
"UpstreamPathTemplate": "/test/{everything}",
"UpstreamHttpMethod": [
],
"DownstreamHttpMethod": null,
"AddHeadersToRequest": {
},
"UpstreamHeaderTransform": {
},
"DownstreamHeaderTransform": {
},
"AddClaimsToRequest": {
},
"RouteClaimsRequirement": {
},
"AddQueriesToRequest": {
},
"ChangeDownstreamPathTemplate": {
},
"RequestIdKey": null,
"FileCacheOptions": {
"TtlSeconds": 0,
"Region": null
},
"RouteIsCaseSensitive": false,
"ServiceName": null,
"ServiceNamespace": null,
"DownstreamScheme": "https",
"QoSOptions": {
"ExceptionsAllowedBeforeBreaking": 0,
"DurationOfBreak": 0,
"TimeoutValue": 0
},
"LoadBalancerOptions": {
"Type": null,
"Key": null,
"Expiry": 0
},
"RateLimitOptions": {
"ClientWhitelist": [
],
"EnableRateLimiting": false,
"Period": null,
"PeriodTimespan": 0.0,
"Limit": 0
},
"AuthenticationOptions": {
"AuthenticationProviderKey": null,
"AllowedScopes": [
]
},
"HttpHandlerOptions": {
"AllowAutoRedirect": false,
"UseCookieContainer": false,
"UseTracing": false,
"UseProxy": true,
"MaxConnectionsPerServer": 2147483647
},
"DownstreamHostAndPorts": [
{
"Host": "localhost",
"Port": 7071
}
],
"UpstreamHost": "localhost:6001",
"Key": null,
"DelegatingHandlers": [
],
"Priority": 1,
"Timeout": 0,
"DangerousAcceptAnyServerCertificateValidator": false,
"SecurityOptions": {
"IPAllowedList": [
],
"IPBlockedList": [
]
},
"DownstreamHttpVersion": null
}
],
"DynamicRoutes": [
],
"Aggregates": [
],
"GlobalConfiguration": {
"RequestIdKey": null,
"ServiceDiscoveryProvider": {
"Scheme": null,
"Host": null,
"Port": 0,
"Type": null,
"Token": null,
"ConfigurationKey": null,
"PollingInterval": 0,
"Namespace": null
},
"RateLimitOptions": {
"ClientIdHeader": "ClientId",
"QuotaExceededMessage": null,
"RateLimitCounterPrefix": "ocelot",
"DisableRateLimitHeaders": false,
"HttpStatusCode": 429
},
"QoSOptions": {
"ExceptionsAllowedBeforeBreaking": 0,
"DurationOfBreak": 0,
"TimeoutValue": 0
},
"BaseUrl": "https://localhost:6001",
"LoadBalancerOptions": {
"Type": null,
"Key": null,
"Expiry": 0
},
"DownstreamScheme": null,
"HttpHandlerOptions": {
"AllowAutoRedirect": false,
"UseCookieContainer": false,
"UseTracing": false,
"UseProxy": true,
"MaxConnectionsPerServer": 2147483647
},
"DownstreamHttpVersion": null
}
} |
I delete "UpstreamHost":"localhost:6001" and it worked. |
@nrllhylmz commented on Jan 16:
But why do you need to use Read UpstreamHost docs and you will get that feature is based on Your very zipped JSON {
"Routes": [
{
"DownstreamPathTemplate": "/{everything}",
"UpstreamPathTemplate": "/test/{everything}",
"DownstreamScheme": "https",
"DownstreamHostAndPorts": [
{
"Host": "localhost", "Port": 7071
}
],
"UpstreamHost": "localhost:6001",
}
],
"GlobalConfiguration": {
"BaseUrl": "https://localhost:6001",
"DownstreamHttpVersion": null
}
} Don't you see the issue? What are you doing? 🤯 |
Nurullah Yılmaz! I recommend you to
I see misconfiguration problem which should be fixed by your own. |
Dear @raman-m My ocelot.json
Projects started
https://localhost:6001/test/WeatherForecast route matched Projects stop Projects started
https://localhost:6001/test/WeatherForecast route not found Projects stop Repository link: https://github.com/nrllhylmz/Example Thanks. |
Your next created #1926 will be checked by our QA engineer... You can talk to him. |
Hi,
I upgraded ocelot. (18.0.0 -> 22.0.1)
"UpstreamHost" worked without problems in the old version but it doesn't work in the latest version.
Ocelot failed to match routes.
I deleted this feature. Routes matched. But i want to seperate host(UpstreamHost).
Thanks
The text was updated successfully, but these errors were encountered: