planetlabs / planet-client-python

Python client for Planet APIs
https://planet-sdk-for-python-v2.readthedocs.io/en/latest/
Apache License 2.0
276 stars 92 forks source link

the get_results_csv subscriptions operation does not throttle itself #1059

Open ischneider opened 2 months ago

ischneider commented 2 months ago

Expected behavior

get_results_csv should use the client's session's stream function rather than the lower-level httpx client's stream

while the stream itself cannot be retried, this results in the initial request being throttled (and retried)

Actual behavior (describe the problem)

there is no throttling and basic unlimited usage will result in TooManyRequest errors

Related Issues

n/a

Workaround

manual throttling and/or retries

Minimum, Complete, Viable Code Sample

n/a