-
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
Failed to match Route configuration for upstream path using catchAll, everything ... #1364
Comments
Hello, as I see in the logs it seems that you use /gateway/notify/negotiate on the localhost, and /notify/negotiate on the docker. |
the address www.xxx.com:7001 is a Signalr stand-alone remote service. |
If you have: |
Hi, have u solve this issue ? I'm struggling at this point too. Could you share how to fix it |
i have the same issue any updates? thank you |
I got the same problem. The idea is that when user access like https://localhost:9000/Account/GetUserList ==> Ocelot will redirect to https://localhost:5000/GetUserList OR https://localhost:5001/GetUserList I have configured this way and it ran perfectly on previous version of Ocelot. Recently, I changed to .NET5 and update libraries. It did not work. I created very simple project, just keep Ocelot in the init ==> It did not work too. |
Any updates, it wont work on .net 6/7 in my case I get must be a ws or wss:// url as though its not translating the tranport properly, it tries to connect in gateeway as a http url |
First,Regarding wss-protocol. Do you know this protocol is not supported by Ocelot? Yeah, I see, it is 2023 year when the people uses Web 3 protocols, and all modern browsers support latest specs of Web Sockets, HTTP2, HTTP3 protocols.
Please, stop any experiments with wss-protocols! You can use http and https protocols only. The ws & SignalR protocols are supported partially by legacy specs. Second,Here are more technical details and explanations. Finally,I am afraid that Ocelot has no support for wss-protocol via |
@xingwen1987 Hi Richfiter! |
Dear @xingwen1987, You have the right to reopen this issue in the future if you come with a PR ready |
Steps to Reproduce the Problem
ocelot.json
4.but run in docker, same config, thorw follow exception:
requestId: 0HM3VRDIC177A:00000001, previousRequestId: no previous request id, message: Error Code: UnableToFindDownstreamRouteError Message: Failed to match Route configuration for upstream path: /notify/negotiate, verb: POST. errors found in ResponderMiddleware. Setting error response for request path:/notify/negotiate, request method: POST
My Question is, why i set "DownstreamPathTemplate": "/notify/{catchAll}" and "UpstreamPathTemplate": "/gateway/notify/{catchAll}", Ocelot failed to match the route in docker.
Specifications
The text was updated successfully, but these errors were encountered: