gallery-dl icon indicating copy to clipboard operation
gallery-dl copied to clipboard

[skeb] [Error] HttpError: '429 '

Open thumthuma opened this issue 1 year ago • 2 comments

I used command gallery-dl https://skeb.jp/@[user] it returned [skeb][error] HttpError: '429 ' for 'https://skeb.jp/api/users/[user]/works/[number] it worked normally few days ago

thumthuma avatar Feb 17 '24 20:02 thumthuma

Try gallery-dl --sleep-request 5-10 https://skeb.jp/@[user]

  --sleep-request SECONDS     Number of seconds to wait between HTTP requests
                              during data extraction

mikf avatar Feb 17 '24 20:02 mikf

Try gallery-dl --sleep-request 5-10 https://skeb.jp/@[user]

I tried, it replayed same as before

gallery-dl --sleep-request 5-10 https://skeb.jp/@[user]
[skeb][error] HttpError: '429 ' for 'https://skeb.jp/api/users/[user]/works/[number]'

thumthuma avatar Feb 17 '24 22:02 thumthuma

me too

chaimao403 avatar Feb 19 '24 12:02 chaimao403

Seems like the status code lies. There's a Set-Cookie header, and a Retry-After header with a value of 0. So if you're using a requests.Session to handle cookies (which I assume gallery-dl already does for everything), you can just send another request immediately for a 200.

KennethSamael avatar Feb 23 '24 09:02 KennethSamael

Is there currently an option to force-retry/request after a 429 status?

EDIT: There is: "retry-codes": [429], and it works!

biggestsonicfan avatar Feb 23 '24 22:02 biggestsonicfan

-o "retry-codes=[429]" or add the line from https://github.com/mikf/gallery-dl/issues/5210#issuecomment-1962073081 to your config.

mikf avatar Mar 06 '24 12:03 mikf