bukson / steampy

A Steam trading library for python 3
MIT License
575 stars 156 forks source link

make_offer_with_url #397

Open vladislavzorin opened 4 months ago

vladislavzorin commented 4 months ago
#Traceback (most recent call last):
  File "C:\Users\flesh\OneDrive\Рабочий стол\fermaMax\senderItems.py", line 109, in sendAllItems
    steam_client.make_offer_with_url(assets, [], trade)
  File "C:\Users\flesh\AppData\Local\Programs\Python\Python311\Lib\site-packages\steampy\utils.py", line 23, in func_wrapper
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\flesh\AppData\Local\Programs\Python\Python311\Lib\site-packages\steampy\client.py", line 397, in make_offer_with_url
    if response.get('needs_mobile_confirmation', False):
       ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'

During handling of the above exception, another exception occurred:

In _make_offer_withurl, _response = self.session.post(url, data=params, headers=headers).json() is None

vladislavzorin commented 4 months ago

Response code 401

Aarab228 commented 3 months ago

Response code 401

login first to do this

Darkinvo commented 2 weeks ago

i do login but i have this error


    if response.get('needs_mobile_confirmation', False):
       ^^^^^^^^^^^^ 
     AttributeError: 'NoneType' object has no attribute 'get'