python_blockchain_app icon indicating copy to clipboard operation
python_blockchain_app copied to clipboard

Received a typeerror message JSON as string not as bytes

Open Stoekadoe opened this issue 5 years ago • 1 comments

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

Stoekadoe avatar May 10 '20 09:05 Stoekadoe

Thanks for reporting @Stoekadoe

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

satwikkansal avatar May 15 '20 11:05 satwikkansal