Closed asthypar closed 5 months ago
I may have managed to workaround this issue by increasing setting the timeout for page.waitForURL to a high value (300000). This is NOT the timeout that is already present in downloadPhoto. Instead I have made the following change:
// we wait until new photo is loaded
await page.waitForURL((url) => {
return url.host === 'photos.google.com' && url.href !== currentUrl
},
{
timeout: 300000,
})
My downloads are now proceeding but I have a huge library, so not sure if I will encounter any more issues - I suspect that the timeout I was hitting was the result of a larger than usual library.
How large is your library? I have ~500k items so I would like to see if I might face the same issue
I have around 250k items.
Submitted pull request #12
I am having some difficulty getting this to work. I'm providing the correct URL in the .lastdone file and have confirmed that the Chrome profile is correct (have run node index.js --headless=false and shows that it successfully authenticated into Google Photos).
The first photo downloads fine, and then hangs after the "Latest Photo" line before throwing a timeout error: -
node -v shows version is v21.6.1
Also, running with --headless=false shows the file get downloaded, but then it doesn't move on to the next file, just stops and then times out.