Hydra: Error: "Command failed because error occurred: invalid character 'p' after top-level value" on running hydra client create

Created on 20 Dec 2018  Â·  3Comments  Â·  Source: ory/hydra

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:

  1. Download hydra binary for darwin-amd64 and version:1.0.0-rc.5+oryOS.10
  2. Set environment variable 'HYDRA_ADMIN_URL' to http://localhost:4444/
  3. Run hydra client create after making the binary executable
  4. See error described above

Expected behavior
Should receive information about necessary flags required to run the command instead of the error.

Screenshots
screen shot 2018-12-19 at 6 29 02 pm

Version:

  • Environment: macOS High Sierra
  • Version: 10.13.6

Additional context
Surprisingly, hydra clients delete and hydra clients get work as expected.

Most helpful comment

Admin URL should be 4445

On 20. Dec 2018, at 00:33, sumeet jain notifications@github.com 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.

All 3 comments

Admin URL should be 4445

On 20. Dec 2018, at 00:33, sumeet jain notifications@github.com 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"

The router now returns a JSON response when application/json was requested!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lpotherat picture lpotherat  Â·  7Comments

ms42Q picture ms42Q  Â·  8Comments

RichardLindhout picture RichardLindhout  Â·  3Comments

sawadashota picture sawadashota  Â·  4Comments

flavioleggio picture flavioleggio  Â·  7Comments