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

Don't error out on plugin err with json #19131

Merged
merged 1 commit into from
Jan 8, 2016

Conversation

cpuguy83
Copy link
Member

@cpuguy83 cpuguy83 commented Jan 6, 2016

We don't want to error out when there is a json unmarshal error since
the old way will cause this to error.

I'm also a little suspect of this new handling now that I've messed with it.
HTTP statuses other than 200 should only be used for protocol level issues, which don't really need to encode a json message since it can just write a string to the body.

@GordonTheTurtle GordonTheTurtle added status/0-triage dco/no Automatically set by a bot when one of the commits lacks proper signature labels Jan 6, 2016
@cpuguy83
Copy link
Member Author

cpuguy83 commented Jan 6, 2016

ping @runcom

We don't want to error out when there is a json unmarshal error since
the `old way` will cause this to error.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
@cpuguy83 cpuguy83 force-pushed the fix_plugin_error_handling branch from ca80495 to 279dd09 Compare January 6, 2016 16:34
@GordonTheTurtle GordonTheTurtle removed the dco/no Automatically set by a bot when one of the commits lacks proper signature label Jan 6, 2016
@calavera
Copy link
Contributor

calavera commented Jan 6, 2016

it can just write a string to the body

that string can be a json payload 😄

This change LGTM.

@runcom
Copy link
Member

runcom commented Jan 8, 2016

make sense, LGTM

runcom added a commit that referenced this pull request Jan 8, 2016
Don't error out on plugin err with json
@runcom runcom merged commit f4f848b into moby:master Jan 8, 2016
@cpuguy83 cpuguy83 deleted the fix_plugin_error_handling branch September 20, 2017 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants