GetStream / stream-python

Python Client - Build Activity Feeds & Streams with GetStream.io
https://getstream.io
BSD 3-Clause "New" or "Revised" License
142 stars 40 forks source link

exception handling is broken #1

Closed tbarbugli closed 10 years ago

tbarbugli commented 10 years ago

Something is going wrong with exception handling and the response exception is replaced by an InputException without any message.

tbarbugli commented 10 years ago

this is the original exception from APIs

{u'status_code': 400, u'exception': u'InputException', u'code': 4, u'detail': u"Errors for fields 'actor'", u'exception_fields': {u'actor': [u'Enter a whole number.']}}
tschellenbach commented 10 years ago

resolved in the latest version, it now also parses the exception fields and adds it to the error message