Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: Difficult to understand Swagger Errors #1492

Closed
lakshman1977 opened this issue Jul 18, 2019 · 7 comments · Fixed by #1493
Closed

cmd: Difficult to understand Swagger Errors #1492

lakshman1977 opened this issue Jul 18, 2019 · 7 comments · Fixed by #1493

Comments

@lakshman1977
Copy link

Hi I am using steps mentioned in https://www.ory.sh/docs/hydra/5min-tutorial
when i run below command
docker-compose -f quickstart.yml exec hydra
hydra clients create
--endpoint http://127.0.0.1:4445/
--id my-client
--secret secret
-g client_credentials

I am getting error as below
Config file not found because "Config File ".hydra" Not Found in "[/]""

kindly help to create client.

Thanks and Regards
Lakshman

@aeneasr
Copy link
Member

aeneasr commented Jul 18, 2019

This is a cross-post from here: https://community.ory.sh/t/creates-a-new-oauth-2-0-client-ubunthu/1231

You are seeing a 409 error (conflict) which means that the client exists already:

Unable to execute request: [POST /clients][409] createOAuth2ClientConflict &{Code:0 Debug: Hint: Name:0xc000574010}

So basically the client is already created and you can continue with the tutorial.

We should probably improve the error messages here.

@aeneasr aeneasr changed the title ORY HYDRA Client issue cmd: Difficult to understand Swagger Errors Jul 18, 2019
@lakshman1977
Copy link
Author

Hi ,
I am getting error something like lakshman@laksh:~/hydra$ docker-compose -f quickstart.yml exec hydra hydra clients create --endpoint http://127.0.0.1:4445/ --id my-client --secret secret -g client_credentials
Config file not found because "Config File ".hydra" Not Found in "[/]""
You should not provide secrets using command line flags, the secret might leak to bash history and similar systems
OAuth 2.0 Client ID: my-client
I dont see "OAuth2 client secret: secret" in the output

when i open 127.0.0.0 :4445
"{"error": "Error 404 - The requested route does not exist. Make sure you are using the right path, domain, and port."}"
kindly advise.

Thanks and Regards
Lakshman

@aeneasr
Copy link
Member

aeneasr commented Jul 19, 2019

Please follow the guide at https://www.ory.sh/docs/hydra/5min-tutorial step-by-step. You can reset using docker rm -f $(docker ps -aq). For more information please read the docs: https://www.ory.sh/docs/

You can not simply access http://127.0.0.1:4445 in your browser, you will only find REST APIs there.

@lakshman1977
Copy link
Author

Hi Aeneasr,
Its very disappointing, still not getting the answer for the question asked. Yes, I went through
"Please follow the guide at https://www.ory.sh/docs/hydra/5min-tutorial step-by-step. You can reset using docker rm -f $(docker ps -aq). For more information please read the docs: https://www.ory.sh/docs/"
its of no use, because when you use the docker to run its throwing an error
"Config file not found because "Config File ".hydra" Not Found in "[/]""
You should not provide secrets using command line flags, the secret might leak to bash history and similar systems
OAuth 2.0 Client ID: my-client
I dont see "OAuth2 client secret: secret" in the output"

Yes i agree its a cross post , do you see anyone reply to the post ??? no one..
i am just keep trying for past 3 days still no one really trying to help.

I believe you are more interested in closing the ticket rather than solving the problem..
very disappointing.

Thanks and Regards
Lakshman

@aeneasr
Copy link
Member

aeneasr commented Jul 19, 2019

"Config file not found because "Config File ".hydra" Not Found in "[/]""

You can ignore this line.

I dont see "OAuth2 client secret: secret" in the output"

The documentation is not up to date there, our CLI no longer echoes the OAuth2 Secret when you explicitly provide it with --secret. The command still runs OK.

I'm not sure what else I can help you with here.

@lakshman1977
Copy link
Author

Hi Aeneasr,
Thank you for replying.Yes the document is not upto date. I ignored all the warnings. Its working fine.
In our company we are planning to use ory hydra.Thank you so much.

warm regards
Lakshman

@acodercat
Copy link

me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants