question

jasobyrn7 avatar image
0 Likes"
jasobyrn7 asked ·

eBay API AttributeError: Response object has no attribute _dom

In developing an algorithm to find eBay records based on specific search criteria, I am receiving the following error message: AttributeError: 'Response' object has no attribute '_dom' The full error message is below, where I can trace its source in the ebaysdk module but cannot understand the cause or figure out a workaround. Proxy settings seem fine and the error only sometimes appears 'randomly' on my macbook but appears consistently when run on my linux server machine. ebaysdk.\_\_version\_\_ = 2.1.5 python2.7 Has anyone an idea or suggestion how to fix this please? File "src/ topsellers.py", line 380, in main() File "src/ topsellers.py", line 180, in main current_item = RMvsEbay.getting_items.get_ebay_items_by_category(find_api, c, api_filter, api_keywords) File "/ getting_items.py", line 57, in get_ebay_items_by_category items = get_ebay_items_by_category_by_page(find_api, category, api_filter, api_keywords, 1) File "/ getting_items.py", line 45, in get_ebay_items_by_category_by_page response = find_api.execute('findItemsAdvanced', api_request) File "/.conda/envs/ebay_env_test/lib/python2.7/site-packages/ebaysdk/connection.py", line 127, in execute self.error_check() File "/.conda/envs/ebay_env_test/lib/python2.7/site-packages/ebaysdk/connection.py", line 218, in error_check estr = self.error() File "/.conda/envs/ebay_env_test/lib/python2.7/site-packages/ebaysdk/connection.py", line 334, in error error_array.extend(self._get_resp_body_errors()) File "/.conda/envs/ebay_env_test/lib/python2.7/site-packages/ebaysdk/finding/__init__.py", line 227, in _get_resp_body_errors dom = self.response.dom() File "/.conda/envs/ebay_env_test/lib/python2.7/site-packages/ebaysdk/response.py", line 239, in dom return self._dom File "/.conda/envs/ebay_env_test/lib/python2.7/site-packages/ebaysdk/response.py", line 226, in __getattr__ return getattr(self._obj, name) AttributeError: 'Response' object has no attribute '_dom'
pythonebaysdkfinding-api-ebayerror msg
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
yazhou_developersupport avatar image
0 Likes"
yazhou_developersupport answered ·
Hello jasobyrn7, If possible, could you provide the entire request and response with headers for the failed call ? It is very helpful for us to triage the issue. Best Regards
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.