-
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
UnableToFindDownstreamRouteError, Failed to match Route configuration for upstream path: /, verb: GET #1973
Comments
Hi Could you attach ocelot.json file and C# app startup code (configuring services etc.) please? But it is better to upload full app code for review. So, please provide more information! |
@pseudorasbora |
@AlyHKafoury Are you online? |
sorry, it's online. ocelot.json{
"Routes": [
{
"DownstreamPathTemplate": "/{url}",
"DownstreamScheme": "https",
"UpstreamPathTemplate": "/msgapi/{url}",
"UpstreamHttpMethod": [ "Get", "Post", "Put", "Delete" ],
"ServiceName": "MsgApi",
"LoadBalancerOptions": {
"Type": "NoLoadBalancer"
},
"RateLimitOptions": {
"EnableRateLimiting": true,
"Period": "1s",
"PeriodTimespan": 3,
"Limit": 5
},
"QoSOptions": {
"ExceptionsAllowedBeforeBreaking": 3,
"DurationOfBreak": 60000,
"TimeoutValue": 120000
},
"AuthenticationOptions": {
"AuthenticationProviderKey": "gatewayBearer",
"AllowedScopes": []
},
"DangerousAcceptAnyServerCertificateValidator": true
}
],
"GlobalConfiguration": {
"BaseUrl": "https://gtw.dev.com",
//consul
"ServiceDiscoveryProvider": {
"Scheme": "http",
"Host": "localhost",
"Port": 3123,
"Type": "Consul",
"Token": "xxxxxxxxxxxxxxxxxxxxx",
"ConfigurationKey": "ocelot"
},
"RateLimitOptions": {
"DisableRateLimitHeaders": false,
"QuotaExceededMessage": "xxxx",
"HttpStatusCode": 222,
"ClientIdHeader": "client-id"
}
}
} startup code services
.AddOcelot(new ConfigurationBuilder()
.AddJsonFile("ocelot.json", optional: false, reloadOnChange: true)
.Build())
.AddPolly()
.AddConsul(); logs
|
@ggnaegi Please consult this developer! 🙏 I expect misconfiguration issue... |
Hello @pseudorasbora a lot of new features and changes were introduced in the release 23. We are going to release 23.1 next week. Could you try the new release first (a bug with the request content has been addressed)? If the issue persist, we will try to find a solution with you. Thanks! |
hi, |
thanks for ur help! |
hi:
upgrade from 22.0.1 to 23.0.0:
it throws error "bad gateway, 502" when using method "get". methods "put/post/delete" work well.
ocelot log:
requestId: 0HM5DM6ULMR8I:00000002, previousRequestId: no previous request id, message: Error Code: UnableToFindDownstreamRouteError Message: Failed to match Route configuration for upstream path: /api/xxx, verb: GET. errors found in ResponderMiddleware. Setting error response for request path:/api/xxx, request method: GET
now it works after rollback to 22.0.1.
thanks!
The text was updated successfully, but these errors were encountered: