Skip to content

undefined Syntax Error in Getting photos not in Album #85

@micnguyen

Description

@micnguyen

Hi, I'm attempting to retrieve all photos in my Google Photos that isn't in an album. I followed the README.md instructions (get all library items, select all albums to exclude from, add to album called 'No album' (existing)).

However, I get an error below:

17:34:59] SyntaxError: "undefined" is not valid JSON at JSON.parse (<anonymous>) at Api.makeApiRequest (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:1294:31) at async Api.getAlbumPage (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:1511:26) at async ApiUtils.getAllItems (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:2071:22) at async ApiUtils.getAllMediaInAlbum (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:2094:14) at async chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:2768:33

It occurs in the logs here

[17:24:13] Cached Albums Restored
[17:24:57] Found 98 items
[17:24:58] Found 66 items
[17:24:59] Found 2 items
[17:25:00] Found 2 items
[17:25:00] Albums Refreshed
[17:25:29] Reading library
[17:25:30] Found 500 items
...
.... (lots more items found)
....
17:34:57] Source read complete
[17:34:57] Found items: 222518
[17:34:57] Getting album items to exclude
...
[17:34:59] Found 87 items
[17:34:59] SyntaxError: "undefined" is not valid JSON at JSON.parse (<anonymous>) at Api.makeApiRequest (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:1294:31) at async Api.getAlbumPage (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:1511:26) at async ApiUtils.getAllItems (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:2071:22) at async ApiUtils.getAllMediaInAlbum (chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:2094:14) at async chrome-extension://dhdgffkkebhmkfjojejmpbldmpobfkfo/userscript.html?name=Google-Photos-Toolkit.user.js&id=d0af533b-e45d-49fc-a5b5-045a8ac3fcf3:2768:33
[17:34:59] Found 267 items

then it stops finding items and then the script stops. No items are added to the No Album existing album.

Anyone experienced this or know a work around? I don't think it's related to the 20k+ album cap is it, because it hasn't begun adding anything to the new album?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions