gphotos-uploader-cli: Geting "400: Bad Request" Error

Describe the bug I’m pretty sure I set myself up on Google and copied in the Client ID and Secret to my config. However, the first time I ran push every file errored with something like:

[error]  Album creation failed: name=StevenPhone, error=googleapi: Error 403: Photos Library API has not been used in project 466066290713 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/photoslibrary.googleapis.com/overview?project=466066290713 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry., accessNotConfigured

So I visited that URL, and made another Client ID and Secret, put them in my config, but now it is giving me this error:

[info]   Token has been expired, refreshing
[fatal]  could not refresh the token: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error": "invalid_grant",
  "error_description": "Token has been expired or revoked."
}

I’m not very handy with Oauth stuff, so I’m probably doing something wrong, sorry! Any suggestions?

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

  • Operating System: linux (Ubuntu)
  • Version 1.0.4

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 25

Most upvoted comments

That was it. On ubuntu, i did sudo apt-get install seahorse then ran seahorse and deleted 4 secrets that mentioned gphotosuploader. Then, i tried gphotos-upload-cli push again and got the link.

Thanks!

Unfortunately, no change for me 😦 still the same 400 error

This is a really cool and needed change, thank you @pacoorozco !! Can use now on headless!