box / box-python-sdk

Box SDK for Python
http://opensource.box.com/box-python-sdk/
Apache License 2.0
419 stars 215 forks source link

Download ZIP retry loop #844

Closed psevertson closed 1 year ago

psevertson commented 1 year ago

Description of the Issue

The download_zip call is missing the skip_retry_codes={202} parameter, which is causing it to retry MAX_RETRY_ATTEMPTS times until it returns the successful response

Steps to Reproduce

  1. Call client.download_zip() with a zip name, files to zip, and a writeable stream
  2. The download takes a long time to generate, because it gets stuck in a retry loop

Expected Behavior

Expected the zip download to complete in a quicker time by returning the first successful response

Versions Used

Python SDK: 3.9.0 Python: 3.9.13

antusus commented 1 year ago

Hi @psevertson,

thanks for pointing that out. We are working on a fix.