Skip to content

Conversation

@i-yang
Copy link

@i-yang i-yang commented Apr 24, 2017

In Python 3, without simplejson, a successful api_post call returns the following exception:
TypeError: the JSON object must be str, not 'bytes'. The reason seems to be that response.content is a bytes literal, which need to be decoded before being passed in to json.loads.

simplejson.loads seems to handle byte literals, but unfortunately, simplejson conflicts with some of the other third party libraries we're using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant