Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: steampy.exceptions.ApiException: Success value should be 1. #391

Open
sherstyanoy opened this issue May 27, 2024 · 1 comment
Open

Comments

@sherstyanoy
Copy link

sherstyanoy commented May 27, 2024

Code:

from steampy.client import SteamClient
from steampy.models import GameOptions


steam_client = SteamClient('XXX')
steam_client.login('XXX', 'XXX', 'guard.json')
game = GameOptions.CS
my_items = steam_client.get_my_inventory(game)

Error:
File "C:\Users\vedomolihoy\PycharmProjects\steamTrade\steam.py", line 8, in
my_items = steam_client.get_my_inventory(game)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vedomolihoy\PycharmProjects\steamTrade\venv\Lib\site-packages\steampy\utils.py", line 23, in func_wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vedomolihoy\PycharmProjects\steamTrade\venv\Lib\site-packages\steampy\client.py", line 157, in get_my_inventory
return self.get_partner_inventory(steam_id, game, merge, count)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vedomolihoy\PycharmProjects\steamTrade\venv\Lib\site-packages\steampy\utils.py", line 23, in func_wrapper
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\vedomolihoy\PycharmProjects\steamTrade\venv\Lib\site-packages\steampy\client.py", line 168, in get_partner_inventory
raise ApiException('Success value should be 1.')
steampy.exceptions.ApiException: Success value should be 1.

.login() method works correctly, the login data is correctly too.
.is_session_alive() returns False, but as I understand it, that method is no longer relevant

@sherstyanoy
Copy link
Author

The problem is getting response_dict.
How can i fix that?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant