Hi Team , I've created a hydra client with client...
# talk-hydra
t
Hi Team , I've created a hydra client with client-id in this format -
abc/xyz/test123
. I've checked it in hydra database that client is created with this same client-id value. But now I'm trying to fetch this client using this API https://www.ory.sh/clients/{id} by making a request through postman with this curl
Copy code
curl --location --request GET '<https://www.ory.sh/clients/abc%2Fxyz%2Ftest123>'
where I'm replacing the forward slash with encoded string
%2F
but I'm getting this as response from hydra
Copy code
{
  "error": "Error 404 - The requested route does not exist. Make sure you are using the right path, domain, and port."
}
Also getting the same response even if I do not change forward slash with encoded string Is this the correct way to fetch client details , where client-id contains forward slash ? Or is there any other way to fetch client details using client-id ?
a
Hi @thankful-kangaroo-7634, which version of Hydra are you running? I believe you can't configure the client ID in new versions. Does it work when you use the generated client UUID?
t
Hi @able-glass-7253 I'm using this image : livcr.io/oryd/hydra: v1.7.4 This is not working for any case or solutions provided over internet.
a
Are you actually using the URL 'https://www.ory.sh/clients/abc%2Fxyz%2Ftest123'? With
<http://www.ory.sh|www.ory.sh>
as the domain name?
t
No this is just an example to make you understand the issue . I'm using the domain name of server with subpath
/clients/abc%2Fxyz%2Ftest123
. However , when i use subpath
/clients
, I get the whole list of clients . So , server is running but I cannot fetch this client id which contains forward slash .
Hi @channel Can anyone help me with this ?
a
I suspect you've run into this issue[1], which would mean that the only simple fix is not to have slashes in client IDs. [1]: https://github.com/julienschmidt/httprouter/pull/140