DEV Community

🦄N B🛡
🦄N B🛡

Posted on

3 1

vault Error ... unsupported protocol scheme ""

I was brainless enough to get into this situation while using the Vault client binary:

unsupported protocol scheme ""

A better translation would be, "WTF my man, is this even a URI??"

It's probably because of a malformed URI or absent URI getting used in a web request by GoLang's HTTP thingy.

if !isHTTP {
        req.closeBody()
        return nil, &badStringError{"unsupported protocol scheme", scheme}
    }

Here's an example of what I did with it:

namespaccckler[micro-service-metadata-provider !?+]$ vault status
Error checking seal status: Get notsosecure/v1/sys/seal-status: unsupported protocol scheme ""
namespaccckler1[micro-service-metadata-provider !?+]$ export VAULT_ADDR=http://127.0.0.1:8200
namespaccckler[micro-service-metadata-provider !?+]$ vault status
Key             Value
---             -----
Seal Type       shamir
Initialized     true
Sealed          false
Total Shares    10
Threshold       4
Version         1.6.3+prem
Cluster Name    vault-cluster-c9387625
Cluster ID      0280f278-443a-210c-dcdd-c3dee0bd5f1d
HA Enabled      false
namespaccckler[micro-service-metadata-provider !?+]$ 

Anyone else run into this sort of bungling?

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay