Skip to content

TypeError: The JSON Object must be str, not bytes #9

Description

@Zalkota

Any Idea how to fix this?

 File "trade.py", line 19, in <module>
    ethereumsummary = api.getmarketsummary(market)
  File "/home/user/Desktop/Projects/Bots/python-bittrex/bittrex/test/bittrex.py", line 62, in getmarketsummary
    return self.query('getmarketsummary', {'market': market})
  File "/home/user/Desktop/Projects/Bots/python-bittrex/bittrex/test/bittrex.py", line 41, in query
    response = json.loads(urllib.request.urlopen(req).read())
  File "/usr/lib/python3.4/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions