mvysny / photocloud-frame-slideshow

Android Digital Photo Frame
https://www.android-photo-frame.eu
15 stars 1 forks source link

Google Photos API 429 Too Many Requests #134

Open aldo-leka opened 4 years ago

aldo-leka commented 4 years ago

I get a 429 error (Too Many Requests) when using the slideshow from Google Photos. With what account are the photos fetched, because I couldn’t see any related project in my Google Developer Console. I tried to check the Quota tab because apparently there’s a 75000 requests limit per project per day which, as I calculated, with 5 seconds intervals photos slideshow shouldn’t surpass the limit.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/92321235-google-photos-api-429-too-many-requests?utm_campaign=plugin&utm_content=tracker%2F53303527&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F53303527&utm_medium=issues&utm_source=github).
mvysny commented 3 years ago

Hi, thank you for letting me know! Yeah, unfortunately the quotas are project-specific, rather than user-specific. That means that the following quota is valid for all PhotoCloud users:

The quota limit for requests to the Library API is 10,000 requests per project per day.

The quota limit for requests to access media bytes (by loading a photo or video from a base URL) is 75,000 requests per project per day.

https://developers.google.com/photos/library/guides/api-limits-quotas

I need to figure out whether it's possible to raise the quota limit...

mvysny commented 3 years ago

There is a partner's program which may increase the quota here: https://developers.google.com/photos/partner-program/overview I'll apply, let's see where that will lead to.

mvysny commented 3 years ago

I've applied, send the screenshots, waiting for Google to review and reply.

mvysny commented 3 years ago

I've hopefully became a Google Partner, which should lift the limits quite a bit. Can you please confirm that you're no longer getting this issue, or are you still getting this bug?