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

"option CreateAlbums is invalid, '⏎" on fresh installation #416

Open
zeograd opened this issue Dec 1, 2023 · 2 comments
Open

"option CreateAlbums is invalid, '⏎" on fresh installation #416

zeograd opened this issue Dec 1, 2023 · 2 comments
Assignees
Labels
bug Something isn't working documentation

Comments

@zeograd
Copy link

zeograd commented Dec 1, 2023

Describe the bug
After configuration the OAuth token, account and folder in a fresh installation, the "auth" subcommand fails with the error message: Error occurred: invalid configuration at '/home/olivier/.gphotos-uploader-cli/config.hjson': option CreateAlbums is invalid, '⏎

To Reproduce
Steps to reproduce the behavior:

  1. Install release 4.2.1 for linux from release page
  2. Run gphotos-uploader-cli init
  3. Follow the instruction in https://gphotosuploader.github.io/gphotos-uploader-cli/#/configuration to setup ClientID, ClientSecret, Account and Jobs[0].SourceFolder
  4. Run gphotos-uploader-cli auth

Expected behavior
The authentication step should be trigerred

Desktop & Client versions (please complete the following information):

  • Operating System: linux debian 12.0 amd64
  • Version: 4.2.1

Additional context
Anonymized config.hjson file is

{
  APIAppCredentials: {
    ClientID: xxxxxxxxxxxxxx.apps.googleusercontent.com
    ClientSecret: yyyyyyyyyyyyyyyyyyyyy
  }
  Account: zzzzzzzz@gmail.com
  SecretsBackendType: file
  Jobs: [
    {
      SourceFolder: xxxxxxxxx
      DeleteAfterUpload: true
      IncludePatterns: []
      ExcludePatterns: []
    }
  ]
}


@zeograd zeograd added the bug Something isn't working label Dec 1, 2023
@zeograd
Copy link
Author

zeograd commented Dec 1, 2023

After tweaking, it seems like CreateAlbums: Off added as part of Jobs[0] did the trick.

@pacoorozco
Copy link
Member

Yes, the CreateAlbums is required... I'll update the documentation or I'll make it optional and assign a default value.

Thanks for raising the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation
Projects
None yet
Development

No branches or pull requests

2 participants