ylexus / jiotty-photos-uploader

Uploads your media files to Google Photos creating albums based on the directory structure
69 stars 11 forks source link

INVALID_ARGUMENT: Failed: There was an error while trying to create this media item #129

Open BILL-HU-2021 opened 2 months ago

BILL-HU-2021 commented 2 months ago

First of all, thank you to the creator for providing this good tool.

I have a question. When using version 2.0.5 to upload MP4 files, some files fail while others succeed. I have confirmed that there are no discernible differences between the successful and failed files, and the failed files are not particularly large. The error log is "_INVALIDARGUMENT: Failed: There was an error while trying to create this media item"

Despite multiple retries, the issue persists. I also attempted the upload on the next day, but unfortunately it still doesn’t work. Additionally, I have verified that there is sufficient available space in my google drive.

ylexus commented 2 months ago

Hi, what happens if you try to upload one of these "bad" files manually via Google Photos web?

Also, is it always same files that fail?

Finally, if you can't figure out what's wrong with them please send me the application logs - they are in your home directory -> .jiottyphotosuploader. Are you running it on Windows?

BILL-HU-2021 commented 2 months ago

Thanks.. While using the web interface directly seems to work fine, I analyzing the log files revealed that these files were previously uploaded and are now being ignored during the upload process. Additionally, they are not being added to the album.

Is it possible to prevent these files from being ignored during upload or to only add them to the album, I have try to change the upload mode settings. However, even after selecting a different option, the issue persists.

ylexus commented 2 months ago

I suspect they have been previously uploaded manually, not via the app. If you look at the wiki, this is one of the Google Photos API limitations. When you look at one of these in Google Photos web and click on "info" or "details" - it shows who uploaded and when. If it was jiotty it will say so. What does it show?

BILL-HU-2021 commented 2 months ago

Yes, but it not manually uploaded, it upload by "Google Backup and Sync" APP

ylexus commented 2 months ago

OK, so this would explain it. The key is that it was not uploaded by Jiotty. The public Google Photos API restricts an API user from modifying or re-uploading anything that was not uploaded by the same app. Maybe I could have improved an error message to add this as a possibly explanation, but ultimately this is the reason.

Also it is very unlikely that I will be releasing any new versions unless there is a strong demand. It costs money to keep developer certificates that are needed to release new version as signed/verified apps.

ylexus commented 2 months ago

Actually, can you confirm that you have this option set as highlighted?

image
BILL-HU-2021 commented 2 months ago

I have tried two methods as above and the result is the same.

Although there will be no new version, I still appreciate your contribution. Since PICASA went offline, I have looked for a lot of software, and finally your software can solve my problem. Thank you very much.

Your app is very good