agentsofthesystem / agent-smith

Manages Game Servers
https://agentsofthesystem.com
GNU Affero General Public License v3.0
0 stars 0 forks source link

Bug: Error retrieving server build number #87

Closed jreed1701 closed 2 weeks ago

jreed1701 commented 2 weeks ago

_internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 17:37:42] "GET /v1/game/palworld HTTP/1.1" 200 - game.py:141 INFO:Checking if Game Requireds an update game.py:159 CRITICAL:'depots' app.py:825 ERROR:Exception on /v1/game/update/check/1 [GET] Traceback (most recent call last): File "application\api\v1\blueprints\game.py", line 153, in game_check_for_update File "application\managers\steam_manager.py", line 53, in is_update_required File "application\managers\steam_manager.py", line 41, in _get_build_id KeyError: 'depots'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "flask\app.py", line 1455, in wsgi_app File "flask\app.py", line 869, in full_dispatch_request File "flask\app.py", line 867, in full_dispatch_request File "flask\app.py", line 852, in dispatch_request File "application\common\decorators.py", line 58, in decorated_view File "application\api\v1\blueprints\game.py", line 160, in game_check_for_update application.common.exceptions.InvalidUsage _internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 17:37:45] "GET /v1/game/update/check/1 HTTP/1.1" 500 - _internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 17:37:45] "GET /v1/games HTTP/1.1" 200 - _internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 17:37:45] "GET /v1/game/arguments HTTP/1.1" 200 - _internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 17:37:45] "GET /v1/games HTTP/1.1" 200 -

_internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 18:01:16] "GET /v1/games HTTP/1.1" 200 - _internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 18:01:45] "GET /v1/games HTTP/1.1" 200 - architect.py:50 ERROR:Unable to retrieve game info for game_steam_id: 1829350 Traceback (most recent call last): File "application\api\v1\blueprints\architect.py", line 42, in agent_info File "application\managers\steam_manager.py", line 53, in is_update_required File "application\managers\steam_manager.py", line 41, in _get_build_id KeyError: 'depots' _internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 18:02:17] "GET /v1/architect/agent/info HTTP/1.0" 200 - architect.py:22 INFO:App is alive! _internal.py:97 INFO:127.0.0.1 - - [23/Aug/2024 18:02:32] "GET /v1/architect/health/secure HTTP/1.0" 200 -

jreed1701 commented 2 weeks ago
architect.py:50 ERROR:Unable to retrieve game info for game_steam_id: 1829350
Traceback (most recent call last):
  File "C:\projects\agent-smith\application\api\v1\blueprints\architect.py", line 42, in agent_info
    update_dict = steam_mgr.is_update_required(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\projects\agent-smith\application\managers\steam_manager.py", line 53, in is_update_required
    published_build_id = self._get_build_id(
                         ^^^^^^^^^^^^^^^^^^^
  File "C:\projects\agent-smith\application\managers\steam_manager.py", line 41, in _get_build_id
    depots = app_data["depots"]
             ~~~~~~~~^^^^^^^^^^
KeyError: 'depots'
connectionpool.py:1052 DEBUG:Starting new HTTPS connection (1): api.steamcmd.net:443
jreed1701 commented 2 weeks ago

Problem is api.steamcmd.net isn't responding with valid data. Why? no idea... can account for this by saying no update is needed and throwing an error flag.