-
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 a 404 when Consul is enabled #793
Comments
@raime910 Are you sure you configured consul correct? I mean consul configurations. And BTW the |
|
@secret-agent-B Hi Ryan! Based on error from this screenshot, |
…ements and fix errors (#1670) * fixing some issues in poll consul: - Timer is not thread safe, avoiding usage of it - No Ressources are returned for first call - Using a providers pool, instead of creating a new provider instance * line endings * adding some test cases * Using a lock instead of SemaphoreSlim * Improve code readability * CA2211: Non-constant fields should not be visible * Use IOcelotLogger to remove warnings & messages of static code analysis (aka IDE0052) * Fix errors with unit tests discovery. Remove legacy life hacks of discovering tests on .NET Core * Update unit tests * Also refactoring the kubernetes provider factory (like consul and eureka) * shorten references... * const before... * Some minor fixes, using Equals Ordinal ignore case and a string constant for provider type definition instead of string litterals. Fixing usings. * waiting a bit longer then? * @RaynaldM code review * renaming PollKubernetes to PollKube * ... odd... * ... very odd, we have an issue with configuration update duration... * IDE0002: Name can be simplified * All tests passing locally, hopefully it works online * just a bit of cleanup * Some missing braces and commas * Update servicediscovery.rst: Review and update "Consul" section --------- Co-authored-by: Guillaume Gnaegi <[email protected]> Co-authored-by: raman-m <[email protected]>
I am able to successfully request data from an API when Consul is not enabled but when I turn on Consul, all I get is 404.
My Startup.cs looks like;
Then my configuration looks like this in Consul.
Questions:
I don't have a load balancer but I still LeastConnection specified, is that a requirement? We have a very unique environment we have to operate on.
In Consul web interface, I only get 1 service which is "consul". How do I add my other services in there? It'd be useful for me to tell whether a service is up or down from that dashboard.
Right now, I register each service endpoint into the configuration.json manually because I need to be able to set the AuthenticationOptions and RouteClaimsRequirement for each of them and to be able to configure them in one place". Is that something I can configure in Consul then have Ocelot get the information from Consul?
Thanks!
The text was updated successfully, but these errors were encountered: