[bluesky] wait unitl 'RateLimit-Reset' on 429 responses
This commit is contained in:
@@ -444,7 +444,8 @@ class BlueskyAPI():
|
|||||||
if response.status_code < 400:
|
if response.status_code < 400:
|
||||||
return response.json()
|
return response.json()
|
||||||
if response.status_code == 429:
|
if response.status_code == 429:
|
||||||
self.extractor.wait(seconds=60)
|
until = response.headers.get("RateLimit-Reset")
|
||||||
|
self.extractor.wait(until=until)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user