Dropbox API version retired

Below is the trace back of error I am facing for backup uploading on dropbox.
How do I update dropbox from v1 to v2 ?

**Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 21, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 52, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 907, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/integrations/doctype/dropbox_settings/dropbox_settings.py”, line 54, in get_dropbox_authorize_url
request_token = sess.obtain_request_token()
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/session.py”, line 236, in obtain_request_token
response = self.rest_client.POST(url, headers=headers, params=params, raw_response=True)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 325, in POST
return cls.IMPL.POST(*n, kw)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 263, in POST
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/dropbox/rest.py”, line 238, in request
raise ErrorResponse(r, r.read())
ErrorResponse: [400] u’v1_retired’

What is your current ERPNext Version? This has been fixed in the latest ERPNext

ERPNext: v8.0.39 (master)

Frappe Framework: v8.0.59 (master)

Hi @rmehta,
My ERPNext version is v7.033, what is the fix for this issue without updating to v9.x.
I am having difficulties updating to v9.x (I have posted this issue on a separate post).


Possibly there’s an update or patch in v7 that works with v2 now that Dropbox has officially retired v1 to connect?

To quote Dropbox
A little less than a year ago we announced June 28th, 2017 as the cutoff day for API v1. Developers have asked us for more time to finish updating their apps, so we have extended the API v1 cutoff date until September 28th, 2017.


Hi @clarkej thanks for the response. Do you know where to get the update/patch?

This would the place to check erpnext/erpnext/patches at develop · frappe/erpnext · GitHub

or better yet here https://github.com/frappe/frappe/blob/develop/frappe/patches/v7_1/setup_integration_services.py