Dropbox backup upload error

I had updated from V10 to V11.1.4 yesterday. After upgrade i noticed that dropbox upload was failing with following error. It may or may not be related to the recent upgrade.

Backup Upload Failed

Oops, your automated backup to Dropbox failed.

Error message:


Traceback (most recent call last):
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 47, in take_backup_to_dropbox
    did_not_upload, error_log = backup_to_dropbox(upload_db_backup)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 112, in backup_to_dropbox
    upload_file_to_dropbox(filename, "/database", dropbox_client)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 169, in upload_file_to_dropbox
    create_folder_if_not_exists(folder, dropbox_client)
  File "/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py", line 201, in create_folder_if_not_exists
    dropbox_client.files_get_metadata(folder)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/base.py", line 1277, in files_get_metadata
    None,
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py", line 274, in request
    timeout=timeout)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py", line 365, in request_json_string_with_retry
    timeout=timeout)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/dropbox.py", line 449, in request_json_string
    timeout=timeout,
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 587, in urlopen
    timeout_obj = self._get_timeout(timeout)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/connectionpool.py", line 300, in _get_timeout
    return Timeout.from_float(timeout)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/util/timeout.py", line 154, in from_float
    return Timeout(read=timeout, connect=timeout)
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/util/timeout.py", line 94, in __init__
    self._connect = self._validate_timeout(connect, 'connect')
  File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/urllib3/util/timeout.py", line 127, in _validate_timeout
    "int, float or None." % (name, value))
ValueError: Timeout value connect was Timeout(connect=30, read=30, total=None), but it must be an int, float or None.

Please contact your system manager for more information.

Same error is happening to me since update to V11. Is there any workaround for this?

I have not been able to make it work for me. I think it is related to the redirect URL. On my site I am not able to use localhost:8000 instead I have to use the IP address of ubuntu server. Can anybody suggest a workaround. Thanks