Consul either redirects into a 404 or gives me "Moved Permanently" when connecting via curl

I’ll try and keep it short but sweet, I’m attempting to check and some key/value stores via a small script on server start and am running off a pretty stock container right now so consul is not installed. If you believe that is the easiest solution to my problem, I suppose its a thing that could be done easily enough, but right now am just attempting to do some things via curl requests like so: curl "${FLY_CONSUL_URL}/v1/kv/?recurse" give me <a href="/APPNAME+RANDOMNESS/v1/kv/?recurse">Moved Permanently</a>.

Ok, no problem, add -L to follow redirects throw a -v on there to debug a bit and we get curl -L -v "${FLY_CONSUL_URL}/v1/kv/?recurse" which includes a few redirects but ends with:

* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET /AppName-RANDOMSTUFF/v1/kv/?recurse HTTP/2
> Host: consul-iad-5.fly-shared.net
> authorization: Basic HaNotPuttingThatHere==
> user-agent: curl/7.81.0
> accept: */*
> 
* TLSv1.2 (IN), TLS header, Supplemental data (23):
< HTTP/2 404 
< date: Sun, 05 Jan 2025 02:48:09 GMT
< content-length: 0
< server: Fly/d5165e6e2 (2024-12-18)
< via: 2 fly.io
< fly-request-id: 01JGT5SR9BYR2EZK7XJAV9F5BY-dfw
< 
* Connection #0 to host consul-iad-5.fly-shared.net left intact

I will admit that I am at a bit of a loss, Consul is a new idea to me, been reading a ton of documentation today, and I will admit I also tried the stuff outlined Sneak peak: global lock service there, and just got a method POST not allowed

Any help would be appreciated!

Cheers,
Waffleophagus

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.