Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not ping localhost:5000 #960

Closed
carlosporta opened this issue Dec 16, 2016 · 2 comments
Closed

Could not ping localhost:5000 #960

carlosporta opened this issue Dec 16, 2016 · 2 comments

Comments

@carlosporta
Copy link

carlosporta commented Dec 16, 2016

I'm trying to use webview bootstrap but I get this message on my log:

25908 25953 V WebViewLoader: Could not ping localhost:5000

And my app stucks on Loading window.

This is my code:
`from flask import Flask
app = Flask(name)

@app.route('/')
def main_page():
return 'hello world'

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

If I open my browser on my phone or on my pc I can access my phone's IP o port 5000 and I am able to see the message 'Hello world'. But on my app I only see the loading message.

Am I doing something wrong?

@inclement
Copy link
Member

inclement commented Dec 16, 2016

The webview bootstrap repeatedly pings localhost until it becomes available, logging this message whenever the ping fails. As such, this is not a bug.

If you have a different problem, e.g. the pinging never works, please open a new issue with the full details of your build and the logcat log. Before doing so, check the log for python tracebacks - the most likely cause of this problem is that the python process crashes.

@carlosporta
Copy link
Author

inclement, I'm sorry, I accidentally hit the post button, before I finished my post's writing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants