{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/python-for-android/issues/961","repository_url":"https://api.github.com/repos/kivy/python-for-android","labels_url":"https://api.github.com/repos/kivy/python-for-android/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/kivy/python-for-android/issues/961/comments","events_url":"https://api.github.com/repos/kivy/python-for-android/issues/961/events","html_url":"https://github.com/kivy/python-for-android/issues/961","id":196177012,"number":961,"title":"Could not ping localhost:5000","user":{"login":"caaarlos","id":10673767,"avatar_url":"https://avatars.githubusercontent.com/u/10673767?v=3","gravatar_id":"","url":"https://api.github.com/users/caaarlos","html_url":"https://github.com/caaarlos","followers_url":"https://api.github.com/users/caaarlos/followers","following_url":"https://api.github.com/users/caaarlos/following{/other_user}","gists_url":"https://api.github.com/users/caaarlos/gists{/gist_id}","starred_url":"https://api.github.com/users/caaarlos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caaarlos/subscriptions","organizations_url":"https://api.github.com/users/caaarlos/orgs","repos_url":"https://api.github.com/users/caaarlos/repos","events_url":"https://api.github.com/users/caaarlos/events{/privacy}","received_events_url":"https://api.github.com/users/caaarlos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-16T23:31:21Z","updated_at":"2016-12-28T00:41:48Z","closed_at":null,"body":"I'm trying to use webview bootstrap but I get this message on my log:\r\n\r\n25908 25953 V WebViewLoader: Could not ping localhost:5000\r\n\r\nAnd my app stucks on Loading window.\r\n\r\nThis is my code:\r\n`from flask import Flask\r\napp = Flask(name)\r\n\r\n@app.route('/')\r\ndef main_page():\r\nreturn 'hello world'\r\n\r\napp.run(debug=False, host='0.0.0.0')\r\n`\r\n\r\nIf I open my browser on my phone or on my pc I can access my phone's IP on port 5000 and I am able to see the message 'Hello world'. So the flask server on my phone is working, but my app just show the loading message.\r\n\r\nAm I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/kivy/python-for-android/issues/comments/269403780","html_url":"https://github.com/kivy/python-for-android/issues/961#issuecomment-269403780","issue_url":"https://api.github.com/repos/kivy/python-for-android/issues/961","id":269403780,"user":{"login":"iiDatKat","id":16504328,"avatar_url":"https://avatars.githubusercontent.com/u/16504328?v=3","gravatar_id":"","url":"https://api.github.com/users/iiDatKat","html_url":"https://github.com/iiDatKat","followers_url":"https://api.github.com/users/iiDatKat/followers","following_url":"https://api.github.com/users/iiDatKat/following{/other_user}","gists_url":"https://api.github.com/users/iiDatKat/gists{/gist_id}","starred_url":"https://api.github.com/users/iiDatKat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iiDatKat/subscriptions","organizations_url":"https://api.github.com/users/iiDatKat/orgs","repos_url":"https://api.github.com/users/iiDatKat/repos","events_url":"https://api.github.com/users/iiDatKat/events{/privacy}","received_events_url":"https://api.github.com/users/iiDatKat/received_events","type":"User","site_admin":false},"created_at":"2016-12-28T00:41:48Z","updated_at":"2016-12-28T00:41:48Z","body":"+1 I'm experiencing this problem too. I'm using Flask + Socket.IO in Python, and using the command to build a WebView application.\r\n\r\nI put the python file in a folder, and specified that folder in the long p4a command. The python file can run by using `python ___.py`, no `FLASK_APP=___.py flask run` necessary. So I would think that when I open the APK app, it'll run automatically."}}
{"actor":{"display_login":"iiDatKat"}}