Broken error message
tomekpapiernik opened this issue · comments
Tom Papiernik commented
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- This issue affects my Ory Cloud project.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Describe the bug
When I tried to update the Identity Service config with an unsupported value, I got an error message that was 960 lines long.
Reproducing the bug
- Get Identity Service config and save it to a file.
ory get identity-config XXXXX --format yaml > identity-config.yaml
- Change
required_aal
toaal2
. - Save the file.
ory update identity-config XXXXXXX --file identity-config.yaml
- You get 960 lines of error
Relevant log output
The request was malformed or contained invalid parameters
Unable to validate config: I[#] S[#/oneOf] oneOf failed
I[#] S[#/oneOf/0] validation failed
I[#] S[#/oneOf/0/allOf/0] allOf failed
I[#] S[#/oneOf/0/allOf/0/required] missing properties: "version"
I[#] S[#/oneOf/0/allOf/1] allOf failed
I[#] S[#/oneOf/0/allOf/1/$ref] doesn't validate with "static://ory.cloud.schema.json#"
I[#/session/whoami/required_aal] S[#/properties/session/properties/whoami/properties/required_aal/$ref] doesn't validate with "#/definitions/featureRequiredAal"
I[#/session/whoami/required_aal] S[#/definitions/featureRequiredAal/enum] value must be one of "aal1", "highest_available"
I[#] S[#/oneOf/1] validation failed
I[#] S[#/oneOf/1/allOf/0] allOf failed
I[#] S[#/oneOf/1/allOf/0/required] missing properties: "version"
and so on...
Relevant configuration
No response
Version
0.1.27
On which operating system are you observing this issue?
Ory Cloud
In which environment are you deploying?
Ory Cloud
Additional Context
No response
hackerman commented
Sorry, wrong ping!