mtomwing / pickups

IRC gateway for hangups
MIT License
73 stars 25 forks source link

authorization token is not saved when hangups has never been called #14

Open okurz opened 8 years ago

okurz commented 8 years ago

observation

When just calling pickups on a system where neither pickups or hangups have been called, pickups correctly asks for the authorization token but fails to save it:

WARNING:hangups.auth:Failed to save refresh_token:
[Errno 2] No such file or directory:
'/home/okurz/.cache/hangups/cookies.json'

problem

Subsequent calls request for new authorization tokens as the old one. pickups/hangups reports a helpful warning but should create the directory $HOME/.cache/hangups itself.

workaround

mkdir $HOME/.cache/hangups before calling pickups
urandom2 commented 8 years ago

I saw this issue too, but this seems like an issue with the hangups code; as such I have created an issue there: tdryer/hangups#213

urandom2 commented 8 years ago

the hangups team appears to see this as a requirement at the application level, not the library level