ValvePython / steamctl

🤸 Take control of Steam from your terminal
https://pypi.org/project/steamctl/
MIT License
306 stars 16 forks source link

[BUG] SetAppBuildLive is producing 405 GET errors. #55

Closed TNBYM closed 1 year ago

TNBYM commented 1 year ago

Description The webapi call SetAppBuildLive is producing 405 GET errors.

Steps to Reproduce the behavior Run steamctl webapi call ISteamApps.SetAppBuildLive appid=%APPID% buildid=%BUILDID% betakey=public key=%WEBAPIKEY%

Expected behavior Expected the ability to move around builds.

What actually happend Series of 405 errors stating that no POST requests were made -- only GET.

Logs

steamctl -l debug (Include logs related ot the issue. Use `steamctl -l debug` to get detailed log) ``` [DEBUG] steamctl: Parsed args: {'versions_report': None, 'log_level': 'debug', 'anonymous': False, 'user': None, 'command': 'webapi', '_cmd_func': 'steamctl.commands.webapi.cmds:cmd_webapi_call', 'subcommand': 'call', 'apikey': None, 'format': 'json', 'method': None, 'version': None, 'endpoint': 'ISteamApps.SetAppBuildLive', 'params': [['appid', '%APPID%'], ['buildid', '%BUILDID%'], ['betakey', '%BRANCHID%']]} [DEBUG] steamctl.utils.storage: Opening file (r): C:\Users\\AppData\Local\steamctl\steamctl\apikey.txt [DEBUG] urllib3.connectionpool: Starting new HTTPS connection (1): api.steampowered.com:443 [DEBUG] urllib3.connectionpool: https://api.steampowered.com:443 "GET /ISteamApps/SetAppBuildLive/v1/?appid=%APPID%&buildid=%BUILDID%&betakey=%BRANCHID%&key=%WEBAPIKEY%&format=json HTTP/1.1" 405 147 [ERROR] steamctl.commands.webapi.cmds: ISteamApps.SetAppBuildLive failed: 405 Client Error: Method Not Allowed for url: https://api.steampowered.com/ISteamApps/SetAppBuildLive/v1/?appid=%APPID%&buildid=%BUILDID%&betakey=&%BRANCHID%&key=%WEBAPIKEY%&format=json ```

Versions Report

steamctl --versions-report (Run steamctl --versions-report and paste the output below) ```yaml steamctl: 0.9.3 Dependencies: steam: 1.3.0 appdirs: 1.4.4 argcomplete: 2.0.0 tqdm: 4.64.0 arrow: 1.2.2 pyqrcode: 1.2.1 beautifulsoup4: 4.11.1 vpk: 1.4.0 vdf: 3.4 gevent-eventemitter: 2.1 gevent: 21.12.0 greenlet: 1.1.2 pyyaml: Not Installed pycryptodomex: 3.15.0 protobuf: 3.20.1 Python runtime: executable: C:\Users\\AppData\Local\Programs\Python\Python310\python.exe version: 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] platform: win32 System info: system: Windows machine: AMD64 release: 10 version: 10.0.19044 ```
rossengeorgiev commented 1 year ago

Does steamctl webapi call --method POST ISteamApps.SetAppBuildLive work?

It's not always possible to determine the right method for an endpoint.

TNBYM commented 1 year ago

Many thanks for the response. I will check this right now and update you accordingly @rossengeorgiev.

TNBYM commented 1 year ago

Excellent! This worked! Many thanks for the assistance.