zzzzz icon indicating copy to clipboard operation
zzzzz copied to clipboard

No web app is loaded http//0.0.0.0:5000/

Open erichello opened this issue 9 years ago • 13 comments

_ Sorry, I've never written code or anything, I literally have no programming experience and this is the first creation that I decided to attempt to use. _

I ran python graph.py then python app.py then used chrome and mozilla firefox to access both 0.0.0.0:5000 and localhost:8000; got the "This webpage is unavailable" error for both.

What did I do wrong?

I think I got through all the steps (unless SECRET.txt has to be formatted in some different way?); all the information is right and cmd is no longer giving me an error.

erichello avatar Feb 25 '16 04:02 erichello

Can you post the output, please?

pielco11 avatar Feb 25 '16 10:02 pielco11

Having the same problem. What output do you need?

infinia-yzl avatar Feb 25 '16 13:02 infinia-yzl

Well, if you are sure that fetcher.py and graph.py work correctly you can not post them. So can you post the output of app.py, please?

pielco11 avatar Feb 25 '16 18:02 pielco11

Restarting with stat Debugger is active! Debugger pin code: 473 - 957 - 672 Running on http://0.0.0.0:5000/ (Press Ctrl+C to quit)

erichello avatar Feb 26 '16 21:02 erichello

Well, I see no errors. So are you sure about SECRETS.txt? When you execute fetcher.py, do you see some informations or something else?

pielco11 avatar Feb 26 '16 23:02 pielco11

I'm not exactly sure about SECRETS.txt; I found and copied the clientid, uid, and cookie from 10 digit code using copy cURL (cmd) on facebook.com/pull.. etc, where they were:

  1. client-id= ___
  2. cookie = 'datr=; lu=; ally=; c_user=; fr=;xs=; csm=______, s= _, p=, act=; presence=' (I didn't put in the --compressed part)
  3. uid=____

Is this wrong?

I see the csv files and I can open them with the data in it.

erichello avatar Feb 27 '16 00:02 erichello

Well, it is like mine. And mine works, so at this point I don't know how to help you.

pielco11 avatar Feb 27 '16 17:02 pielco11

Got it; found it on localhost:5000

erichello avatar Feb 28 '16 07:02 erichello

Instead of going to 0.0.0.0:5000, try 127.0.0.1:5000 or localhost:5000

ghost avatar Feb 29 '16 17:02 ghost

In my case another application was ussing the port 5000 so I changed in my code to port 5040 and try localhost:5040, works for me!

alekz7 avatar Oct 02 '17 03:10 alekz7

in program.cs change: if (isDevelopment) webHost = webHost.UseKestrel().UseUrls("http://0.0.0.0:5000");

TO: if (isDevelopment) webHost = webHost.UseKestrel().UseUrls("http://127.0.0.1:5000");

amiralizade2 avatar Aug 27 '19 14:08 amiralizade2

Instead of going to 0.0.0.0:5000, try 127.0.0.1:5000 or localhost:5000

Yeah 0.0.0.0 isn't a routable address. When something says "Running on http://0.0.0.0:5000", it means that it's listening to port 5000 on all IPs, and you should actually use a real IP or hostname to access it, not literally go to 0.0.0.0:5000 in your browser.

Daniel15 avatar Sep 17 '20 02:09 Daniel15

I too faced similar issue, was able to fix it by replacing:

app.run(debug=False)

with

app.run(host='0.0.0.0', debug=False)

If multiple hosts, then host = list(str())