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

Accept trade offer issue #346

Closed
am576 opened this issue Jan 21, 2024 · 2 comments
Closed

Accept trade offer issue #346

am576 opened this issue Jan 21, 2024 · 2 comments

Comments

@am576
Copy link

am576 commented Jan 21, 2024

Was trying this library but it seems that i can't accept offers for some reasons, i get

File "\venv\lib\site-packages\steampy\client.py", line 256, in accept_trade_offer
    partner = self._fetch_trade_partner_id(trade_offer_id)
  File "\venv\lib\site-packages\steampy\client.py", line 282, in _fetch_trade_partner_id
    return text_between(offer_response_text, "var g_ulTradePartnerSteamID = '", "';")
  File "\venv\lib\site-packages\steampy\utils.py", line 29, in text_between
    start = text.index(begin) + len(begin)
ValueError: substring not found

when trying to steam_client.accept_trade_offer(offer_id)
Though I follow the example presented here
There was a simiar issue a while ago, but it appeared the issue was due to dead session, but I call steam_client.login() just before accepting trades

@lspeed-v
Copy link

lspeed-v commented Jan 21, 2024

The library is broken right now because of steam update, look at previous issue discussion. We should w8 when @bukson will fix this lib. Btw here's manual fix for that #343 (comment)

@am576
Copy link
Author

am576 commented Jan 21, 2024

The library is broken right now because of steam update, look at previous issue discussion. We should w8 when @bukson will fix this lib. Btw here's manual fix for that #343 (comment)

Thanks, seems to work now

@am576 am576 closed this as completed Jan 21, 2024
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

2 participants