Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

orchestrator-client: return raw JSON for api call on error#1166

Merged
shlomi-noach merged 4 commits intomasterfrom
orchestrator-client-api-raw
May 18, 2020
Merged

orchestrator-client: return raw JSON for api call on error#1166
shlomi-noach merged 4 commits intomasterfrom
orchestrator-client-api-raw

Conversation

@shlomi-noach
Copy link
Collaborator

Fixes #949

when running orchestrator-client -c api -path ... and operation returns with error, return complete JSON as opposed to parsing the error text.

Parsing the error text remains on all "normal" commands. For example, consider these two calls:

$ orchestrator-client -c stop-replica -i 127.0.0.1:10119
dial tcp 127.0.0.1:10119: connect: connection refused
$ orchestrator-client -c api -path stop-replica/127.0.0.1/10119
{ "Code": "ERROR", "Message": "dial tcp 127.0.0.1:10119: connect: connection refused", "Details": null }

@shlomi-noach shlomi-noach merged commit 7ba6a36 into master May 18, 2020
@shlomi-noach shlomi-noach deleted the orchestrator-client-api-raw branch May 18, 2020 07:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

orchestrator api graceful-master-takeover does not always return a code

1 participant