Open lewurm opened 2 years ago
Huh, that's weird. A refresh token should be set. Might be similar to #20. I've never been able to reproduce the issue... would you be able to dig in a little more and figure out why a refresh token isn't set?
I have this issue, as well. It made syncing too much hassle restarting every hour with a large photo library so i stopped trying for a bit.
What would be helpful is putting in some debug lines that could print out some state and help us know why a refresh token isn't set. If one of you who can reproduce the issue could do that, it would help us solve the problem.
@mholt I can reproduce it reasonable well, but I'm not sure what kind of debug output would help. Would you mind posting a patch here with the debug lines that you think would be helpful?
Sure, thanks. I just need a chance to sit down at my computer first. In the meantime I'd look at oauth-related files.
@lewurm Sorry I never got around to this, I'm still really busy in both my work and personal life right now. But you could start by putting fmt.Println()
lines all over this file: https://github.com/mholt/timeliner/blob/cf155164e218ca1ad6ad600152cd2436c88dba43/oauth2client/localapp.go
I tried to add some reauth hack when this failure happens, but that didn't work:
Probably another
timerliner.Open
isn't right here, but I didn't figure out how to pass down the handle frommain.go
due to my lack of Go knowledge 🙂Any insight would be appreciated, also if it happens for other people.