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
Unable to match serviceId and routeId #389
Comments
Hello @ZoraZora59 ,thank you for submitting an issue! |
|
Hi @lchayoun , could you please offer me some help? |
Please @marcosbarbero . I wanne commit a fix branch for this issue if no available solution for it,. |
is |
I tried “currency-service” but it doesn’t work as well. |
@ZoraZora59 thanks for the feedback, but I'm a little confused, what's the service name? Does the request work without the rate-limiting? |
The application name of my service is "currency-service". It marked as "cloud-currencyBackend" in "zuul.routes". |
I found a method named
I guess it might should be
Notice the second row , |
The request of test is "curl localhost:8080/backend/currency/sleep100ms". |
Can you share a project reproducing the problem?
If you want to use URL patterns you should do it like this:
|
I switch to version 2.0.6.RELEASE , and set yml as follow:
After I update source code and install in my local mvn repository, it worked. |
To reproducing the problem , here is part of my project config. My own service yml as follow :
Configured in api-zuul as follow :
|
The problem still exists on version |
Yes. |
As the result of |
What are the spring-cloud and spring-boot versions used by you? |
Boot version 2.0.3.RELEASE |
The versions you're using are not compatible with the |
OK, I’ll try it on latest version. Thanks. |
rateLimit version 2.4.1
Here is my yml configuration.
Every time while
RateLimitProperties.getPolicies(key)
execute , thekey
will berouteId
likes/backend/currency/**
.My
policyList
isserviceId : targetPolicy
likescloud-currencyBackend: some policy
. Therefore the result of this method will always bedefaultPolicyList
.How can I make this work ?
The text was updated successfully, but these errors were encountered: