zalando-zmon / zmon-worker

ZMON Python Worker
https://zmon.io/
Other
19 stars 41 forks source link

JSON serialize fails for set() type in check result #15

Closed Jan-M closed 8 years ago

Jan-M commented 8 years ago
TypeError: set([u'i-0bfb11b2', u'i-29fdbe90', u'i-0305b6bb']) is not JSON serializable
hjacobs commented 8 years ago

:+1: this can easily be fixed by using a custom JSON serializer

hjacobs commented 8 years ago

I guess the same applies to "datetime" and "date" objects (but I think you cannot easily use them right now in a check command)..

Jan-M commented 8 years ago

Yeah I fixed this already using the one we use everywhere.

On Wednesday, 27 January 2016, Henning Jacobs notifications@github.com wrote:

[image: :+1:] this can easily be fixed by using a custom JSON serializer

— Reply to this email directly or view it on GitHub https://github.com/zalando/zmon-worker/issues/15#issuecomment-175788025.

Jan Mußler Senior Database Engineer | +49 176 1275 8727 | Zalando SE

Jan-M commented 8 years ago

Closing this, http path now uses proper encoder.

This also affected captures and so on.