Can't run socket.io server
Hello,
i cant get the communication between the web page and the bot to work. I always get 404 reponses to the socket.io server :/
"NetworkError: 404 File not found - http://xxxxxxx:8000/socket.io/?EIO=3&transport=polling&t=LQ9EYyc"
i've configured "websocket_server": true in my config.js and tried
"websocket_server_url": "localhost:8000" and "websocket_start_embedded_server": true but none of them helped. This goes for Master and Dev branch. Did i miss something ?
Other Information
OS: Windows Server 2012 Git Commit: 9e65d3dd55e72bdfbca6497f0f7e7453061a44e2 Python Version: Python 2.7.12
I did a hard reset to the commit just before the socket.io implementation. See commit https://github.com/OpenPoGo/OpenPoGoWeb/commit/b5bb1f1dbe38aa29349eaae6b85bc4a8a139a590 in the master branch of https://github.com/OpenPoGo/OpenPoGoWeb
The submodule this bot uses dropped support for this bot
See: https://github.com/OpenPoGo/OpenPoGoWeb/issues/96 for more info.
UPDATE: Seems like they've dropped all support just now... From their page:
Note that this project is deprecated and no further support will be provided for this repo. Use OpenPoGoUi with the latest version of OpenPoGoBot instead.
ok now i'am kinda confused. This Bot : https://github.com/PokemonGoF/PokemonGo-Bot has actually this Web front end https://github.com/PokemonGoF/PokemonGo-Web but i doenst work so well, see issue: https://github.com/PokemonGoF/PokemonGo-Web/issues/6 and https://github.com/PokemonGoF/PokemonGo-Web/issues/18 (seems to be the same problem) the answer on both issues was to use https://github.com/OpenPoGo/OpenPoGoWeb which is now deprecated. But this map work still best, besides from the socket.io errors. It seems like the only problem here is that this bot doesn't start the socket.io server properly.
@Cetino I do not think "this bot" (https://github.com/PokemonGoF/PokemonGo-Bot) activates web socket, yet. The python file invokes socket.io is /ws_server.py which at the moment is not being used. @douglascamata made all the changes to shift from logger to events on 3rd Aug, maybe we can get some confirmation on this from himself?
@Cetino the web ui you're using doesn't work with websockets.
Feature Request?
@k4n30 i would love the see the logs in the Web UI or the possiblity to release/evolve Pokemon from it.
@Cetino The best thing to do is to wait for the rewrite of PokemonGo-Web (I have been told the dist branch is currently working but not stable - aka IT IS IN BETA. Give it a go if you can't wait, but don't complain when it doesn't work periodically.
@k4n30 unfortunately this map throws the same errors + alot more = the current state of this branch ist absolutely not working at all. I think i'm gonna code a bit for myself to get this to fit my needs.
"websocket_server": true,
"websocket": {
"start_embedded_server": true,
"server_url": "127.0.0.1:4000",
"remote_control": true
},
I'm using this in my config file. And it connects to websocket.
@Cetino How is it going?
I am also having the same problem, I have tried the above configuration and still doesn't work
Please update your bot and webui to the latest master. You'll see it's working now.
Still not working for me
Can you share config.json file via pastebin.com