Title:
frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backup_to_dropbox
Error
Traceback (most recent call last):
File “apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 76, in take_backup_to_dropbox
did_not_upload, error_log = backup_to_dropbox(upload_db_backup)
File “apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 135, in backup_to_dropbox
upload_file_to_dropbox(filename, “/database”, dropbox_client)
File “apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 208, in upload_file_to_dropbox
create_folder_if_not_exists(folder, dropbox_client)
File “apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 246, in create_folder_if_not_exists
dropbox_client.files_get_metadata(folder)
File “env/lib/python3.7/site-packages/dropbox/base.py”, line 1512, in files_get_metadata
None,
File “env/lib/python3.7/site-packages/dropbox/dropbox_client.py”, line 327, in request
timeout=timeout)
File “env/lib/python3.7/site-packages/dropbox/dropbox_client.py”, line 482, in request_json_string_with_retry
timeout=timeout)
File “env/lib/python3.7/site-packages/dropbox/dropbox_client.py”, line 600, in request_json_string
raise BadInputError(request_id, r.text)
dropbox.exceptions.BadInputError: BadInputError(‘8a3438543c2b4de2b983d6c502d218ff’, ‘Error in call to API function “files/get_metadata”: Your app is not permitted to access this endpoint because it does not have the required scope 'files.metadata.read'. The owner of the app can enable the scope for the app using the Permissions tab on the App Console.’)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “apps/frappe/frappe/utils/background_jobs.py”, line 147, in execute_job
retval = method(**kwargs)
File “apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 101, in take_backup_to_dropbox
send_email(False, “Dropbox”, “Dropbox Settings”, “send_notifications_to”, error_message)
File “apps/frappe/frappe/integrations/offsite_backup_utils.py”, line 43, in send_email
frappe.sendmail(recipients=recipients, subject=subject, message=message)
File “apps/frappe/frappe/init.py”, line 693, in sendmail
with_container=with_container,
File “apps/frappe/frappe/email/queue.py”, line 118, in send
email_account = get_outgoing_email_account(True, append_to=reference_doctype, sender=sender)
File “apps/frappe/frappe/email/smtp.py”, line 107, in get_outgoing_email_account
frappe.OutgoingEmailError,
File “apps/frappe/frappe/init.py”, line 511, in throw
as_list=as_list,
File “apps/frappe/frappe/init.py”, line 479, in msgprint
_raise_exception()
File “apps/frappe/frappe/init.py”, line 434, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.OutgoingEmailError: Please setup default Email Account from Setup > Email > Email Account