You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the oauth2_refresh_token_eval option in my configuration file I get the error below.
This appear to a problem with at least one of the following lines in offlineimap/repository/IMAP.py
as the problem is fixed by replacing ("\n") with (b"\n")
Configuration file offlineimaprc
This error occurs when using the configuration property:
oauth2_refresh_token_eval = ...
Logs, error
Traceback (most recent call last):
File "/usr/share/offlineimap3/offlineimap/threadutil.py", line 146, in run
Thread.run(self)
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/usr/share/offlineimap3/offlineimap/accounts.py", line 283, in syncrunner
self.remoterepos = Repository(self, 'remote')
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/repository/init.py", line 77, in new
return repo(name, account)
^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/repository/IMAP.py", line 43, in init
self.imapserver = imapserver.IMAPServer(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 108, in init
self.oauth2_refresh_token = repos.getoauth2_refresh_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/repository/IMAP.py", line 440, in getoauth2_refresh_token
refresh_token = refresh_token.strip("\n")
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered:
General informations
When using the
oauth2_refresh_token_eval
option in my configuration file I get the error below.This appear to a problem with at least one of the following lines in
offlineimap/repository/IMAP.py
as the problem is fixed by replacing
("\n")
with(b"\n")
Configuration file offlineimaprc
This error occurs when using the configuration property:
Logs, error
Traceback (most recent call last):
File "/usr/share/offlineimap3/offlineimap/threadutil.py", line 146, in run
Thread.run(self)
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/usr/share/offlineimap3/offlineimap/accounts.py", line 283, in syncrunner
self.remoterepos = Repository(self, 'remote')
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/repository/init.py", line 77, in new
return repo(name, account)
^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/repository/IMAP.py", line 43, in init
self.imapserver = imapserver.IMAPServer(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/imapserver.py", line 108, in init
self.oauth2_refresh_token = repos.getoauth2_refresh_token()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/offlineimap3/offlineimap/repository/IMAP.py", line 440, in getoauth2_refresh_token
refresh_token = refresh_token.strip("\n")
^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered: