Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore from trash fails with an error #30

Open
ndv400 opened this issue Sep 7, 2024 · 6 comments
Open

Restore from trash fails with an error #30

ndv400 opened this issue Sep 7, 2024 · 6 comments

Comments

@ndv400
Copy link

ndv400 commented Sep 7, 2024

Source read complete
Found items: 28079
Items to process: 28079
Restoring 28079 items from trash
Processing 500 items
Processing 500 items
Processing 500 items
Processing 500 items
Processing 500 items
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
TypeError: Cannot read properties of null (reading '0')
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')

@xob0t
Copy link
Owner

xob0t commented Sep 8, 2024

Try lowering Api Operation Batch Size to 50 or less.

@ndv400
Copy link
Author

ndv400 commented Sep 8, 2024

OK, I will.
Is this also related to Api Operation Batch Size?
Processing 500 items
Processing 500 items
moveItemsToTrash Api error SyntaxError: "undefined" is not valid JSON
SyntaxError: "undefined" is not valid JSON

@xob0t
Copy link
Owner

xob0t commented Sep 8, 2024

May be. There is a bug in the Google Photos api, in my experience setting lower batch size fixes it.

@xob0t
Copy link
Owner

xob0t commented Sep 11, 2024

@ndv400
Did it help?

@ndv400
Copy link
Author

ndv400 commented Nov 2, 2024

Sorry for the very late reply.
It was still erroring out at 50:
Source read complete
Found items: 33989
Items to process: 33989
Restoring 33989 items from trash
Processing 50 items
Processing 50 items
Processing 50 items
Processing 50 items
Processing 50 items
Processing 50 items
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
TypeError: Cannot read properties of null (reading '0')
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
Same goes for 30:
Processing 30 items
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
TypeError: Cannot read properties of null (reading '0')
However, when I put it to 10 and tried on another computer with a different IP address it started working for a while, and then failed again:
Processing 10 items
Processing 10 items
Processing 10 items
Processing 10 items
Processing 10 items
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
TypeError: Cannot read properties of null (reading '0')
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')
restoreFromTrash Api error TypeError: Cannot read properties of null (reading '0')

@xob0t
Copy link
Owner

xob0t commented Nov 3, 2024

@ndv400 Does restoring from the trash using the UI work? Try selecting a few hundred items and restoring them manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants