mholt / photobak

Back up your content from Google Photos - DEPRECATED: use Timeliner
https://github.com/mholt/timeliner
309 stars 29 forks source link

Error after a day of use #14

Closed luc-lynx closed 5 years ago

luc-lynx commented 7 years ago

After using the app for a day I'm getting the following error:

2017/10/22 15:57:19 Get https://picasaweb.google.com/data/feed/api/user/default: oauth2: cannot fetch token: 400 Bad Request
Response: {
  "error" : "invalid_request",
  "error_description" : "Could not determine client ID from request."
}

I'm using the app in a headless mode, so I ran authonly and copied the database to my NAS. Then I made a backup and the next day I'm getting the error above. How can I recover? Did anyone come across the same issue?

luc-lynx commented 7 years ago

The problem disappears if I do

$ export GOOGLEPHOTOS_CLIENT_ID=...
$ export GOOGLEPHOTOS_CLIENT_SECRET=...

So it would be great to put the values to the account database

mholt commented 7 years ago

Oh, right; the client ID and secret still have to be given, I guess that's not clear from the readme. Sorry. I guess we could store them in the DB too, with the option for env variables to override the stored values, for cases like this.

luc-lynx commented 7 years ago

Thanks for the quick response. btw I can fix it myself and send you a PR, if you haven't started to implement it

mholt commented 7 years ago

I haven't -- go for it!

mholt commented 5 years ago

This project has been deprecated in favor of Timeliner. Thank you!