veracode / veracode-api-py

Python helper library for working with the Veracode APIs. Handles retries, pagination, and other features of the modern Veracode REST APIs.
MIT License
17 stars 24 forks source link

Retried requests do not regenerate auth headers #63

Closed tjarrettveracode closed 1 year ago

tjarrettveracode commented 1 year ago

We use the Python Requests module and urllib3.util.retry to implement retry in the event of a short list of HTTP error codes. Need to ensure that the auth header gets regenerated with each retry. While we're at it, we should ensure that we're honoring the retry-after value in the response headers to deal gracefully with rate limiting.

tjarrettveracode commented 1 year ago

Need to come back and address retry-after, but will need more information to complete this part.