gpt4 book ai didi

hashicorp-vault - 未能创建客户端 : parse "http://127.0.0.1:8200": first path segment in URL cannot contain colon in Hashi-corp Vault

转载 作者:行者123 更新时间:2023-12-03 15:08:38 25 4
gpt4 key购买 nike

执行以下命令时出现以下错误 window 使用 Hashi-Corp 金库 .

failed to create client: parse "http://127.0.0.1:8200": first path segment in URL cannot contain colon


C:\Softwares\vault_1.0.1_windows_amd64>set VAULT_TOKEN="00000000-0000-0000-0000-000000000000"

C:\Softwares\vault_1.0.1_windows_amd64>set VAULT_ADDR="http://127.0.0.1:8200"

C:\Softwares\vault_1.0.1_windows_amd64>vault auth enable approle
failed to create client: parse "http://127.0.0.1:8200": first path segment in URL cannot contain colon

如果我不设置环境变量,则会出现以下错误。
C:\Softwares\vault_1.0.1_windows_amd64>vault auth enable approle
Error enabling approle auth: Post https://127.0.0.1:8200/v1/sys/auth/approle: http: server gave HTTP response to HTTPS client

最佳答案

我能够使用下面的方法解决这个问题 - 不要使用“”。

set VAULT_ADDR=http://127.0.0.1:8200

关于hashicorp-vault - 未能创建客户端 : parse "http://127.0.0.1:8200": first path segment in URL cannot contain colon in Hashi-corp Vault,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53930260/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com