PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

Can't run socket.io server

Open Cetino opened this issue 10 years ago • 14 comments

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

Cetino avatar Aug 14 '16 13:08 Cetino

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.

thoramisu avatar Aug 14 '16 13:08 thoramisu

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 avatar Aug 14 '16 15:08 Cetino

@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?

apremiumtypewriter avatar Aug 14 '16 21:08 apremiumtypewriter

@Cetino the web ui you're using doesn't work with websockets.

douglascamata avatar Aug 14 '16 22:08 douglascamata

Feature Request?

k4n30 avatar Aug 14 '16 23:08 k4n30

@k4n30 i would love the see the logs in the Web UI or the possiblity to release/evolve Pokemon from it.

Cetino avatar Aug 15 '16 11:08 Cetino

@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 avatar Aug 15 '16 12:08 k4n30

@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.

Cetino avatar Aug 15 '16 16:08 Cetino

    "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.

oralunal avatar Aug 25 '16 23:08 oralunal

@Cetino How is it going?

mjmadsen avatar Aug 31 '16 06:08 mjmadsen

I am also having the same problem, I have tried the above configuration and still doesn't work

foster82 avatar Aug 31 '16 11:08 foster82

Please update your bot and webui to the latest master. You'll see it's working now.

oralunal avatar Aug 31 '16 12:08 oralunal

Still not working for me

foster82 avatar Aug 31 '16 13:08 foster82

Can you share config.json file via pastebin.com

oralunal avatar Aug 31 '16 14:08 oralunal