mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add 429 logging
This commit is contained in:
parent
37b58a5a7e
commit
282ce8b0e9
3 changed files with 2 additions and 3 deletions
|
|
@ -103,6 +103,7 @@ template fetchImpl(result, fetchBody) {.dirty.} =
|
|||
setLimited(account, api)
|
||||
raise rateLimitError()
|
||||
elif result.startsWith("429 Too Many Requests"):
|
||||
echo "[accounts] 429 error, API: ", api, ", account: ", account.id
|
||||
account.apis[api].remaining = 0
|
||||
# rate limit hit, resets after the 15 minute window
|
||||
raise rateLimitError()
|
||||
|
|
|
|||
Loading…
Reference in a new issue