-
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
Getting load balancer error with latest version #2063
Comments
Thanks @vikasgupta1456 for your feedback, let us check that and come back to you. |
@vikasgupta1456 An error in the method
|
The response and potential solutions depend on the type of service discovery provided.
However, it seems your issue may be related to a Global Configuration problem. It's worth considering if PR #1944 might have introduced a bug. |
This is my {
"Routes": [
{
"ChangeDownstreamPathTemplate": {},
"DelegatingHandlers": [],
"DownstreamHeaderTransform": {},
"DownstreamHostAndPorts": [],
"DownstreamHttpMethod": null,
"DownstreamHttpVersion": null,
"DownstreamPathTemplate": "/{catchAll}",
"DownstreamScheme": "https",
"FileCacheOptions": {
"TtlSeconds": 0,
"Region": "",
"Header": null
},
"HttpHandlerOptions": {
"AllowAutoRedirect": false,
"MaxConnectionsPerServer": 2127483647,
"UseCookieContainer": false,
"UseProxy": true,
"UseTracing": false,
"PooledConnectionLifetimeSeconds": null
},
"Key": null,
"LoadBalancerOptions": {
"Expiry": 2127483647,
"Key": "",
"Type": "LeastConnection"
},
"Priority": 1,
"QoSOptions": {
"DurationOfBreak": 1,
"ExceptionsAllowedBeforeBreaking": 0,
"TimeoutValue": 0
},
"RateLimitOptions": {
"ClientWhitelist": [],
"EnableRateLimiting": false,
"Period": null,
"PeriodTimespan": 0.0,
"Limit": 0
},
"RequestIdKey": null,
"RouteClaimsRequirement": {},
"RouteIsCaseSensitive": false,
"SecurityOptions": {
"IPAllowedList": [],
"IPBlockedList": [],
"ExcludeAllowedFromBlocked": false
},
"ServiceName": "myapp",
"ServiceNamespace": null,
"Timeout": 0,
"UpstreamHeaderTransform": {},
"UpstreamHost": null,
"UpstreamHttpMethod": [],
"UpstreamPathTemplate": "/document/read/{catchAll}"
}
],
"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": {
"DurationOfBreak": 1,
"ExceptionsAllowedBeforeBreaking": 0,
"TimeoutValue": 0
},
"BaseUrl": null,
"LoadBalancerOptions": {
"Expiry": 2127483647,
"Key": "",
"Type": ""
},
"DownstreamScheme": null,
"HttpHandlerOptions": {
"AllowAutoRedirect": false,
"MaxConnectionsPerServer": 2127483647,
"UseCookieContainer": false,
"UseProxy": true,
"UseTracing": false,
"PooledConnectionLifetimeSeconds": null
},
"DownstreamHttpVersion": null
} |
@vikasgupta1456 |
{
"Routes": [
{
"DownstreamPathTemplate": "/{catchAll}",
"DownstreamScheme": "https",
"Key": null,
"LoadBalancerOptions": {
"Type": "LeastConnection"
},
"ServiceName": "myapp", // This property requires to setup service discovery options in GlobalConfiguration
"ServiceNamespace": null,
"UpstreamPathTemplate": "/document/read/{catchAll}"
}
],
"GlobalConfiguration": {
"ServiceDiscoveryProvider": {
"Scheme": null,
"Host": null,
"Port": 0,
"Type": null, // Developer must provide the type of service discovery provider: Consul, Kube, Eureka etc.!
"Token": null,
"ConfigurationKey": null,
"PollingInterval": 0,
"Namespace": null
},
} Read Service Discovery docs! |
I am trying to upgrade to latest version of ocelot (23.2.2). But when I am hitting one of my endpoint, I get an error. This works until 23.1.0. which means '23.2.0' also has the same issue. Can you let me know what changed ?
I have routing like this:
And getting this error :
The text was updated successfully, but these errors were encountered: