-
Notifications
You must be signed in to change notification settings - Fork 169
429 HTTP Client Error - may just need help understanding how to manage it #305
Comments
Hello there. My library goes back to 1987 and is about 150GB and it downloads OK. However, if I were to guess at your issue it is that you have a very fast connection and you are exceeding the quotas on Google's API. There are two quotas - a max calls per second and a max calls per 24 hours. The first of those is supposed to be handled in the code using exponential backoff. But if you exceed the 2nd I don't think this will work. I'm also unsure how effective the backoff code is since it is hard to test. luckily, if this is your issue then you can slow things down using --max-threads. Choose a lower number than the default and see how you get on. It would also help to wait for 12 hours or so since you last got the error. |
I am capped at about 300 mb/s from my ISP. I'll take the container schedule offline, wait a day, and try again with the suggested max threads setting until I have the library synched. My library is a bit over 700GB (has video). |
I deleted gphotos.bad_ids.yaml, set --max-threads to 5, and am rerunning the job now. Making quite a bit more progress today. I definitely fell into 24 hour block type situation. |
OK this does not come up often - but I should probably document the issue for those with fast connections and big libraries. |
I am running into this problem with a fast connection, large library, and limited to a single thread. I didn't find another way to throttle |
@qrkourier yes there is no other way to throttle. Do you think that is an issue? I'm not sure how fast a connection would need to be to hit this problem on a single thread but it must be more than 1GBps. |
I'm operating at less than <=1Gbps and am hitting the rate limit and subsequent exception with one concurrent thread and will track progress in #320. |
Describe the bug
I'm experiencing an HTTP 429 response code issue with a rather large photos library I've had in Google Photos since the service originally launched. I've got indexed photos in this library going back to the late 1990s (I imported them at some point along the way).
I apologize in advance if this issue is redundant. I did take a look through closed issues / commits / etc and see this has come up a couple times in the past. #202
I started getting the below error about midway through 2019 processing (2020 and 2021 made it).
I'm guessing these failures are getting written to my gphotos.bad_ids.yaml file. Perhaps I'm mistaken.
What is the best course of action for me to take to work around this? Should I just let it keep running? Do I need to delete my bad_ids.yaml file at some point?
I imagine at some point I'll reach a steady state for this library and it'll settle down. This could be a bad assumption too as I'm still coming up to speed on the underlying issue.
To Reproduce
Simply run gphoto-sync on a big library and wait for Google to complain
The text was updated successfully, but these errors were encountered: