satwikkansal / python_blockchain_app

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

Making a POST request to register a new node crashes the node #21

Closed TwidsDev closed 4 years ago

TwidsDev commented 4 years ago

When I use curl or any other way to make a POST request to http://192.168.8.120:8000/register_with {"node_address": "http://192.168.8.119:8000"}, both front end and backend stop and I'm no longer able to visit the webpage or make any requests.

I have 3 VM's currently setup networked together with static IP addresses: 192.168.8.119 - Node 1 192.168.8.120 - Node 2 192.168.8.121 - Node 3

image

Sending the Post Request

image

What the server shows and continues to show until it times out. At this point everything on this node (192.168.8.120) stops working until the request times out.

image

...

image

Node 1 after the post request is sent

image

Response of the POST request after the request times out

No matter which Node I use or which Node I'm registering, it happens each time.

satwikkansal commented 4 years ago

Thanks for reporting this @TwidsDev

Should be fixed now :)