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

Bug: user-generated-memory-titles.json cannot unmarshal array #108

Closed
grishy opened this issue Dec 23, 2023 · 4 comments
Closed

Bug: user-generated-memory-titles.json cannot unmarshal array #108

grishy opened this issue Dec 23, 2023 · 4 comments

Comments

@grishy
Copy link

grishy commented Dec 23, 2023

Hi 👋

I'm having this error in logs, but it doesn't seem to affect the photo upload process.

immich-go  0.9.4, commit de746fb35b55d944a87d935e1d272061987ee24b, built at 2023-12-20T19:47:05Z

Server status: OK
Ask for server's assets...
20233 asset(s) received
Browsing google take out archive...
Scanning the Google Photos takeout
Error                    : Takeout/Google Photos/user-generated-memory-titles.json: json: cannot unmarshal array into Go struct field GoogleMetaData.title of type string
Scanning the Google Photos takeout completed.
....

And this file in *.zip files:

> unzip -p takeout-20231220T204607Z-001.zip "Takeout/Google Photos/user-generated-memory-titles.json"
{
  "title": ["Home Building", "blah", ".."]
}%
> unzip -p takeout-20231220T204607Z-002.zip "Takeout/Google Photos/user-generated-memory-titles.json"
caution: filename not matched:  Takeout/Google Photos/user-generated-memory-titles.json
> unzip -p takeout-20231220T204607Z-003.zip "Takeout/Google Photos/user-generated-memory-titles.json"
caution: filename not matched:  Takeout/Google Photos/user-generated-memory-titles.json
> unzip -p takeout-20231220T204607Z-004.zip "Takeout/Google Photos/user-generated-memory-titles.json"
caution: filename not matched:  Takeout/Google Photos/user-generated-memory-titles.json

How I started:

~/immich-go -server 'http://172.18.0.6:3001'  -key "$KEY" upload -google-photos -create-albums takeout-20231220T204607Z-001.zip takeout-20231220T204607Z-002.zip takeout-20231220T204607Z-003.zip takeout-20231220T204607Z-004.zip
@pepitoria
Copy link

this happened to me too

@simulot
Copy link
Owner

simulot commented Dec 23, 2023

Thanks for reporting this.

The file Takeout/Google Photos/user-generated-memory-titles.json present in my own takeout file doesn't arm the program:


Metadata files           : Takeout/Google Photos/print-subscriptions.json: Title: 
Metadata files           : Takeout/Google Photos/shared_album_comments.json: Title: 
Error                    : Takeout/Google Photos/user-generated-memory-titles.json: json: cannot unmarshal array into Go struct field GoogleMetaData.title of type string
Scanned                  : Takeout/Google Photos/wrong dates/20161119_194320.mp4: 
Metadata files           : Takeout/Google Photos/wrong dates/20161119_194320.mp4.json: Title: 20161119_194320.mp4

The file is ignored.

Tested with 0.9.4 and current version.
Could you share the content of this files? You can send it via discord to keep it private.

@grishy
Copy link
Author

grishy commented Dec 23, 2023

@simulot the file content in original message also

> unzip -p takeout-20231220T204607Z-001.zip "Takeout/Google Photos/user-generated-memory-titles.json"
{
  "title": ["Home Building", "blah", ".."]
}%

The content in original file is really an array of strings like above, just with a bit more values.
Or you want a different file?

P.S. The program also finished, only error in logs

@simulot
Copy link
Owner

simulot commented Dec 24, 2023

So the message is too alarming... I mitigate it by adding something like : useless file, ignored

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

3 participants