grundleborg / slack-advanced-exporter

A tool for exporting additional data from Slack that is missing from the official data export.
MIT License
97 stars 19 forks source link

Ensure the HTTP client respects retry-after headers #36

Open wetneb opened 1 month ago

wetneb commented 1 month ago

When fetching large Slack spaces, the client can do many requests and get throttled by the Slack API. It's useful if it can react appropriately to Retry-After headers.

This PR implements this via https://github.com/hashicorp/go-retryablehttp.