xob0t / Google-Photos-Toolkit

Userscript to filter, search, organize, or delete your Google Photos library
MIT License
78 stars 3 forks source link

Error: getBatchMediaInfo Api error TypeError: can't access property 0, response is null #17

Open peeyush-sharma opened 1 week ago

peeyush-sharma commented 1 week ago

I was running into the following issue when trying to move 7k+ items from an album to trash

Source read complete
Found items: 7232
Getting items' media info
Processing 5000 items
Processing 2232 items
getBatchMediaInfo Api error TypeError: can't access property 0, response is null
TypeError: can't access property 0, response is null
getBatchMediaInfo Api error TypeError: can't access property 0, response is null

What fixed it for me was enabling the option "Exclude Media With Shared Links" at the bottom in left pane. Also NOT selecting the option "any" under the type filter may have helped.

Creating this issue to bring this to light. Devs feel free to delete if it contravenes any rules.

Awesome tool!

xob0t commented 1 week ago

This is (most likely) a GP bug. It is tied to api batch size, in the past I encountered it randomly, and setting smaller batch size fixed it for me. In this case, try setting BULK INFO API BATCH SIZE in the advanced settings to a smaller number.