Closed iamdoron closed 8 years ago
thanks for your feedback. recently we are trying to add retry logic to bulk and report service. it would be available in 10.4.2. And one thing to confirm, does it happen on Bulk service or Reporting service, or both? from the exceptions, it seems it was Reporting service (reporting_service_manager.py) Thanks.
Yes, it happened also with the bulk service but I can't find the stack trace for it
result_file_path = bulk_service.download_file(download_parameters, progress = None)
File "/usr/local/lib/python2.7/dist-packages/bingads/v10/bulk/bulk_service_manager.py", line 70, in download_file
operation.track(progress)
File "/usr/local/lib/python2.7/dist-packages/bingads/v10/bulk/bulk_operation.py", line 206, in track
status = self.get_status()
File "/usr/local/lib/python2.7/dist-packages/bingads/v10/bulk/bulk_operation.py", line 227, in get_status
response = self.service_client.GetBulkDownloadStatus(RequestId=self.request_id)
File "/usr/local/lib/python2.7/dist-packages/bingads/service_client.py", line 269, in __call__
raise ex
@iamdoron we have added retry mechanism in get_status function in version 10.4.2. do you still see this error happening?
Thanks. Li.
close issue, if any problem, please feel free to let us know. Thanks.
Hi,
once in a while I get the following error while using the bulk service (similar code to the provided example) to get keywords (it also happens with other entities):
sometimes I get similar error, but it in different places within the SDK
From what I understand the server says it gets too many requests. It might be worth to catch this exception, sleep, and try again within the SDK. It can be done from the outside but then a new request will be generated for no reason.