Re: Getmail OAUTH gmail failure
Charles Cazabon <[email protected]> Sat, 12 Mar 2022 10:40:48 -0600
| Newsgroups | gmane.mail.getmail.user |
|---|---|
| Message-ID | <YizNEIt47lpE/[email protected]> |
Gary Schmidt <[email protected]> wrote: > > External password program "/opt/local/bin/getmail-gmail-xoauth-tokens" > wrote to stderr: Traceback (most recent call last): > File "/opt/local/bin/getmail-gmail-xoauth-tokens", line 115, in <module> > sys.stdout.write("%s" % auth.token()) > File "/opt/local/bin/getmail-gmail-xoauth-tokens", line 93, in token > self.refresh_tokens() > File "/opt/local/bin/getmail-gmail-xoauth-tokens", line 89, in > refresh_tokens > self.update_config(d) > File "/opt/local/bin/getmail-gmail-xoauth-tokens", line 65, in > update_config > self.data['access_token'] = d['access_token'] > KeyError: 'access_token'GMAILACCOUNT-rc: operation error (External password > program error (exited 1)) > > Is it google being google, or have I forgotten to do something important?? getmail's telling the truth; your password program, getmail-gmail-xoauth-tokens, exited with an error code. You need to figure out why; it could be, as someone else noted, that your access token expired or permission was revoked or whatever. > From the rc file: > password_command = ("/opt/local/bin/getmail-gmail-xoauth-tokens", > "/home/USERNAME/.getmail/GMAILACCOUNT.json") Run that command by hand, from a shell. Perhaps it will give you better diagnostic data? Charles -- ----------------------------------------------------------------------- Charles Cazabon GPL'ed software available at: http://pyropus.ca/software/ -----------------------------------------------------------------------