question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Accept trade offer issue

See original GitHub issue

I’m trying to accept a trade offer, but suddenly I’m getting

    cli_obj.accept_trade_offer(id)
  File "C:\Users\Zwork101\AppData\Local\Programs\Python\Python36-32\lib\site-packages\steampy\client.py", line 22, in func_wrapper
    return func(self, *args, **kwargs)
  File "C:\Users\Zwork101\AppData\Local\Programs\Python\Python36-32\lib\site-packages\steampy\client.py", line 146, in accept_trade_offer
    partner = self._fetch_trade_partner_id(trade_offer_id)
  File "C:\Users\Zwork101\AppData\Local\Programs\Python\Python36-32\lib\site-packages\steampy\client.py", line 165, in _fetch_trade_partner_id
    return text_between(offer_response_text, "var g_ulTradePartnerSteamID = '", "';")
  File "C:\Users\Zwork101\AppData\Local\Programs\Python\Python36-32\lib\site-packages\steampy\utils.py", line 12, in text_between
    start = text.index(begin) + len(begin)
ValueError: substring not found

Is this a steam error? I haven’t had this problem before. I’m using the correct trade ID I believe, the ID from

            for trade in trades['response']['trade_offers_sent']:
                trade_id = trade['tradeofferid']

With trades being client.get_trade_offers(). And I doing somthing wrong?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (20 by maintainers)

github_iconTop GitHub Comments

2reactions
timwoockercommented, Aug 19, 2017

I am a fan of classes for everything since IDEs can tell you then all the attributes you can read and change. Using classes instead of dicts would be more beginner friendly I think…

So maybe we can create classes for everything (keep backwards compatibitly but deprecate it).

0reactions
Zwork101commented, Sep 3, 2017

Wait, really? oh, ok

Read more comments on GitHub >

github_iconTop Results From Across the Web

Steam error accepting this trade offer 11, 15, 16, 25, 26, 28
Use Steam on the web; Try re-login to your Steam account; Try to accept the trade offer again and check; Enable Steam Guard,...
Read more >
Fix: Error While Accepting Trade on Steam - Windows Report
How can I fix the accept trade offer error on Steam? · 1. Use a browser to process the request instead of your...
Read more >
How to Fix 'There was an Error sending your Trade Offer ...
Solution 2: Contact Support ... If you have ensured that the error isn't being triggered due to the reasons listed above, it is...
Read more >
Cant accept trade! :: Help and Tips - Steam Community
There is a bug on mobile app, which may bring up error for like confirming selling on market, or trades. So just check...
Read more >
There Was An Error Accepting This Trade Offer 11: 3 Fixes
This issue usually occurs when two players try to engage in a trade but one of the two traders involved in the process...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found