Closed hanglearning closed 4 years ago
It seems like your port 8000 is running the application and not the node_server
Hi satwikkansal, thanks a lot for your reply!
No, I did run node_server on port 8000. I run the application on port 5000 by the default config. I didn't change any code and followed your tutorial blog. I just did these to reproduce the issue:
In my first tab, I run node_server on port 8000
Then in my second tab, I run the app
In my third tab, I run another node_server on port 8001
In my fourth tab, I tried to register 8001 with 8000 and got 404
Come back to the third tab, there's an extra line showing 404 error as well
The first and second tabs didn't prompt any extra information.
Please let me know where I could do it wrong. I really appreciate your help! 😊
You thrid tab is not serving node_server
, compare the logs with the second tab.
You need to export the FLASK_APP environment variable in the third tab as well.
Oh correct! Thank you! Turns out it's my false assumption about how flask app runs! Sorry to bother you for this naive question.
Thanks again😁
First of all thanks satwikkansal for an awesome blockchain python tutorial!
When I tried to register a new node with an existing node by using these commands
$ flask run --port 8001
I got this returned back -
I checked the tab with port 8001, and I found port 8001 does receive this request, but also it shows a 404 error:
127.0.0.1 - - [31/Mar/2020 23:14:21] "POST /register_with HTTP/1.1" 404 -
Could anyone help me overcome this issue? Thanks!