timotheus / ebaysdk-python

eBay API SDK for Python
https://developer.ebay.com/tools/sdks
Other
809 stars 326 forks source link

AttributeError when using shopping api #326

Closed blob84 closed 4 years ago

blob84 commented 4 years ago

Hello, when I use shopping api I get this error:

  File "/usr/local/lib/python3.7/site-packages/ebaysdk/connection.py", line 127, in execute
    self.error_check()
  File "/usr/local/lib/python3.7/site-packages/ebaysdk/connection.py", line 219, in error_check
    estr = self.error()
  File "/usr/local/lib/python3.7/site-packages/ebaysdk/connection.py", line 335, in error
    error_array.extend(self._get_resp_body_errors())
  File "/usr/local/lib/python3.7/site-packages/ebaysdk/shopping/__init__.py", line 249, in _get_resp_body_errors
    if self.response.reply.Ack == 'Failure':
AttributeError: 'ResponseDataObject' object has no attribute 'Ack'
resp = Shopping(https=True, config_file=None, appid="appid").execute( 'GetCategoriesInfo', {
                'CategoryID': 139909,
                'IncludeSelector': 'ChildCategories'
            } )
print(resp.dict())

This happend with any shopping api calls. I am using debian 9 with python 3.7, but it doesn't work with previous versions.

blob84 commented 4 years ago

Sorry wrong call name. It is 'GetCategoriesInfo'.