PhoenixFire6934 / Classic-Brawl

Python Brawl Stars server emulator for version 26.184
GNU General Public License v3.0
138 stars 97 forks source link

Empty host #67

Closed Giga-mox closed 2 weeks ago

Giga-mox commented 3 weeks ago

Traceback (most recent call last): File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in start(fakepyfile,mainpyfile) File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start exec(open(mainpyfile).read(), main.dict) File "", line 19, in File "", line 15, in main File "/storage/emulated/0/Classic-Brawl-2.0/Core/Networking/Server.py", line 18, in init self.db = MongoDB(self.config['MongoConnectionURL']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/storage/emulated/0/Classic-Brawl-2.0/DataBase/MongoDB.py", line 14, in init self.client = pymongo.MongoClient(conn_str, serverSelectionTimeoutMS = 5000) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pymongo/synchronous/mongo_client.py", line 797, in init seeds.update(uri_parser.split_hosts(entity, port)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/ru.iiec.pydroid3/files/aarch64-linux-android/lib/python3.11/site-packages/pymongo/uri_parser.py", line 392, in split_hosts raise ConfigurationError("Empty host (or extra comma in host list).") pymongo.errors.ConfigurationError: Empty host (or extra comma in host list).

[Program finished]

How to fix?

8-bitHacc commented 2 weeks ago

https://imgur.com/a/oXI34dA Follow this tutorial ^^ (Note: MongoDB will not be required in near updates. so you will not experience this problem when Classic Brawl switches to another database)