Status Update
Comments
jf...@google.com <jf...@google.com> #2
Thank you for the very detailed and comprehensive issue report!
Just to confirm - are all media items shown in the Google Photos apps (and with the correct dates)?
I have forwarded it to our engineering team for further investigation. We will reach out when we have any updates or have any further follow-up questions.
ha...@gmail.com <ha...@gmail.com> #3
I have found cases with more recent date ranges where more than 2 pages are returned, but the last page is still an empty response and not all of the expected media items have been returned yet.
In one particular case is when searching around 2018-08-31 in my library. On that day I have 294 images and videos which show in the Google Photos site. When I execute a search for 2018-08-30
to 2018-08-31
, I receive 9 pages with a total of 210 media items. The last page includes a nextPageToken, but if I retrieve that next page it returns an empty response. Interestingly, if I add a day to the search, 2018-08-30
to 2018-09-01
, then only 183 images are retrieved before encountering an empty page response. I have tried other various date ranges including Aug 31, starting as early as Aug. 1st, and the most I have been able to retrieve is 210 images. When I change the end date from Aug. 31 to Sept. 1, the media items are returned in a slightly different order, but it always seems to end with the same file, P8310169.JPG
. In the Google Photos site I compared this image to the surrounding images including those that are and are not returned. The photos are nearly identical, all of them taken together on the same camera with the same settings and uploaded together through Google Backup and Sync for Windows. There is no clear indication why it would stop at that file without returning the next few in sequence.
I have also found 6 other 1-month date ranges between 2016 and 2018 which also end in an empty responses when paging through the results and where not all of the media items for the given range are never returned.
jf...@google.com <jf...@google.com> #4
Hi, thanks for the response! Yes, all of the media items show on both the Google Photos site and Google Photos on Android including those that are not returned by the API. Please let me know if there is any additional data I can provide to help troubleshoot the issue.
Description
In order to Authenticate for Photos Library API , we need to get 'Credentials' (as demonstrated in the code below)
These two types of credentials are not compatible and one cannot be derived from the other.
PhotosLibrarySettings settings =
PhotosLibrarySettings.newBuilder()
.setCredentialsProvider(
FixedCredentialsProvider.create(/* Add credentials here. */))
.build();