Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropbox - TypeError: 'NoneType' object is not callable #243

Open
ven0ms99 opened this issue Oct 8, 2024 · 1 comment
Open

Dropbox - TypeError: 'NoneType' object is not callable #243

ven0ms99 opened this issue Oct 8, 2024 · 1 comment
Labels

Comments

@ven0ms99
Copy link

ven0ms99 commented Oct 8, 2024

Can't start backup while Dropbox as a remote location is enabled, because an exception is thrown:

2024-10-08 15:54:49.502 T:5753    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: 'NoneType' object is not callable
                                                   Traceback (most recent call last):
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/default.py", line 102, in <module>
                                                       backup = XbmcBackup()
                                                                ^^^^^^^^^^^^
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 55, in __init__
                                                       self.configureRemote()
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/backup.py", line 65, in configureRemote
                                                       self.remote_vfs = DropboxFileSystem("/")
                                                                         ^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/vfs.py", line 144, in __init__
                                                       if(authorizer.isAuthorized()):
                                                          ^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/authorizers.py", line 62, in isAuthorized
                                                       user_token = self._getToken()
                                                                    ^^^^^^^^^^^^^^^^
                                                     File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmcbackup/resources/lib/authorizers.py", line 148, in _getToken
                                                       result['expiration'] = datetime.strptime(result['expiration'], "%Y-%m-%d %H:%M:%S.%f")
                                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                   TypeError: 'NoneType' object is not callable
                                                   -->End of Python script error report<--
@ven0ms99 ven0ms99 added the bug label Oct 8, 2024
@ven0ms99 ven0ms99 changed the title TypeError: 'NoneType' object is not callable Dropbox - TypeError: 'NoneType' object is not callable Oct 8, 2024
@robweber
Copy link
Owner

Usually one of two things is happening with this type of error.

  1. You haven't authorized the Dropbox service, so no token file exists. Take a look at the instructions if you think this is the issue.
  2. The file is missing or corrupt for some other reason. Try deleting the tokens.json file and re-authorizing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants