satwikkansal / python_blockchain_app

A fully functional blockchain application implemented in Python from scratch (with tutorial).
819 stars 471 forks source link

Received a typeerror message JSON as string not as bytes #40

Open Stoekadoe opened 4 years ago

Stoekadoe commented 4 years ago

Hi there,

I love this project... I received a typeerror message on the :5000 instance. This was resolved by replacing

chain = json.loads(response.content)

with

chain = json.loads(response.content.decode('utf-8'))

in the '/app/view.py' file

satwikkansal commented 4 years ago

Thanks for reporting @Stoekadoe

I'll keep in mind to fix this in the next update.