Join Slack
Powered by
Hi all! We have an API that is rate limiting but n...
# singer-tap-development
a
adam_roderick
09/06/2022, 4:26 PM
Hi all! We have an API that is rate limiting but not reporting it very well. Do you have any reference implementations of custom backoff behavior?
adam_roderick
09/06/2022, 4:35 PM
Nevermind, the source code made it quite clear
https://github.com/meltano/sdk/blob/a1e5589940d7abfdd5373b207d189f90ed513c6e/singer_sdk/streams/rest.py#L196
v
visch
09/06/2022, 4:37 PM
@adam_roderick
https://github.com/AutoIDM/tap-zohosprints/blob/main/tap_zohosprints/client.py#L117-L156
Might be helpful!
e
edgar_ramirez_mondragon
09/06/2022, 4:40 PM
This is the most custom I’ve done:
https://github.com/MeltanoLabs/tap-stackexchange/blob/8617429bd1e335468b8e56273679a8330bfabb17/tap_stackexchange/client.py#L57-L87
• Limit requests on the client • Check the response for backoff indication
Open in Slack
Previous
Next