-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error: "Command failed because error occurred: invalid character 'p' after top-level value" on running hydra client create #1244
Comments
Admin URL should be 4445
… On 20. Dec 2018, at 00:33, sumeet jain ***@***.***> wrote:
Describe the bug
When running
hydra clients create
i get an error
Command failed because error occurred: invalid character 'p' after top-level value
To Reproduce
Steps to reproduce the behavior:
Download hydra binary for darwin-amd64 and version:1.0.0-rc.5+oryOS.10
Set environment variable 'HYDRA_ADMIN_URL' to http://localhost:4444/
Run hydra client create after making the binary executable
See error described above
Expected behavior
Should receive information about necessary flags required to run the command instead of the error.
Screenshots
Version:
Environment: macOS High Sierra
Version: 10.13.6
Additional context
Surprisingly, hydra clients delete and hydra clients get work as expected.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes, I figured that part. But when we provide public hydra URL, this error is due to JSON parsing. I guess the method looks for JSON in the response body but gets 404 code instead. A more helpful error message can be something like "You are providing public URL for an Admin Command" |
6 tasks
aeneasr
added a commit
that referenced
this issue
Apr 2, 2019
This patch significantly refactors internal configuration and service management with the goal of making configuration changes possible without service restarts. This patch prepares the possibility to configure ORY Hydra from a remote source (etcd, consul) and watch for changes. This patch also introduces the possibility to configure ORY Hydra from a configuration file on top of environment variables. The following issues have been fixed as well: - Key rotation of the system secret is now much simpler (closes #1316) - Database connectivity parameters such as max_conns no longer cause issues with older postgres versions (closes #1327) - Non-existing routes now return a JSON error instead of `text/plain` when `application/json` was requested (clsoes #1244) - We now push tags latest, X, X.Y, X.Y.Z to docker hub (closes #1289) - The quickstart guide no longer builds the source code but instead pulls latest tag (closes #1309) - We moved to goreleaser and godownloader for release management (closes #1107) - The quickstart Docker Compose files are now reusable (closes #1196) The following issues are also resolved: - Closes #1121 Signed-off-by: aeneasr <[email protected]>
The router now returns a JSON response when |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When running
hydra clients create
i get an error
Command failed because error occurred: invalid character 'p' after top-level value
To Reproduce
Steps to reproduce the behavior:
hydra client create
after making the binary executableExpected behavior
Should receive information about necessary flags required to run the command instead of the error.
Screenshots

Version:
Additional context
Surprisingly,
hydra clients delete
andhydra clients get
work as expected.The text was updated successfully, but these errors were encountered: