A hydra-maester question: any suggestions why i ge...
# ory-selfhosting
b
A hydra-maester question: any suggestions why i get a
Copy code
"error": "Get \"<https://localhost:4445/admin/clients>\": dial tcp [::1]:4445: connect: connection refused"
when i start the deployment with
Copy code
- --hydra-url=<http://hydra-admin.local.svc.cluster.local>
            - --hydra-port=4445
?
t
Do you have any
OAuth2Client
resources defined with the default
hydraAdmin
block?
b
i had at first, but removed it. and it logs:
Copy code
INFO	controllers.OAuth2Client	using default client
I think I found the reason. It actually uses the correct hydra host initially. but we are using hydra 2 where the endpoint is changed to
/admin/clients
and the default is
/clients
So hydra does a silent redirect to /admin/clients, but also changes the host and protocol. I only see the error logs from the second request specifying the endpoint works:
Copy code
- --endpoint=/admin/clients
b
Oh my god... Your comment is a god send! I have been breaking my head over this exact same bug for the past 5 hours now
So you are using Hydra v2 but the client is old?
Yea this happens when the hydra client is v1 but the deployment is v2