You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing a dict as an attachment to Connection.send(), there is no check whether the content value is a unicode or binary value. If a binary value is passed, the following exception is raised:
File "connection.py", line 80, in send
'attachments': list(self._process_attachments(attachments)),
...
File "/usr/lib/python3.5/json/encoder.py", line 180, in default
raise TypeError(repr(o) + " is not JSON serializable")
TypeError: b'...' is not JSON serializable
The correct behavior would be for Connection._process_attachments() to detect this, encode the value with base64, and set encoded to True in the JSON payload to Hectane.
The text was updated successfully, but these errors were encountered:
When passing a
dict
as an attachment toConnection.send()
, there is no check whether thecontent
value is a unicode or binary value. If a binary value is passed, the following exception is raised:The correct behavior would be for
Connection._process_attachments()
to detect this, encode the value with base64, and setencoded
toTrue
in the JSON payload to Hectane.The text was updated successfully, but these errors were encountered: