Skip to content

Why doesn't AddConfigStoredInConsul() work as normal Consul config? #1762

Discussion options

You must be logged in to vote

@ArchitectAllenGitHub
So, I was a bit lazy, I haven't used your code, but I tried a similar configuration as yours and it's working fine.
Environment: Windows, Ocelot 20.0.0, RoundRobin load balancer, 2 instances of service SuperTestService.
That's an excerpt of the ocelot file stored in consul KV-Store:

{
      "DownstreamPathTemplate": "/test/v{version}/all-labels-and-options",
      "UpstreamPathTemplate": "/test/v{version}/all-labels-and-options",
      "UpstreamHttpMethod": [
        "GET"
      ],
      "DownstreamHttpMethod": null,
      "AddHeadersToRequest": {},
      "UpstreamHeaderTransform": {},
      "DownstreamHeaderTransform": {},
      "AddClaimsToRequest": {},
      "Rout…

Replies: 15 comments 21 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ArchitectAllenGitHub
Comment options

Comment options

You must be logged in to vote
7 replies
@raman-m
Comment options

@ArchitectAllenGitHub
Comment options

@raman-m
Comment options

@ArchitectAllenGitHub
Comment options

@raman-m
Comment options

Comment options

You must be logged in to vote
6 replies
@raman-m
Comment options

@ggnaegi
Comment options

@raman-m
Comment options

@ArchitectAllenGitHub
Comment options

@ggnaegi
Comment options

Comment options

You must be logged in to vote
6 replies
@raman-m
Comment options

@ggnaegi
Comment options

@ArchitectAllenGitHub
Comment options

@raman-m
Comment options

@raman-m
Comment options

Answer selected by raman-m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Initially seen a question could become a new feature or bug or closed ;) Service Discovery Ocelot feature: Service Discovery
3 participants
Converted from issue

This discussion was converted from issue #1761 on October 29, 2023 11:51.