Four Stars

tDropboxConnection is failing because Dropbox discontinued support for API v1

We are getting this error: com.dropbox.core.DbxClient$IODbxException: com.dropbox.core.DbxException$BadRequest: {"error": "v1_retired"} now that they retired the old API.  The terminated support for the old API last Thursday (link).


Anybody else run into this issue?  How are you resolving it?  


We aren't sure if the existing tDropboxConnection component will work with a new token or if this fix is going to be more involved.  Curious if anybody else already worked through this and can point us in the right direction.


Thank you!



One Star

Re: tDropboxConnection is failing because Dropbox discontinued support for API v1

I've been facing the same issue this week. At the end I got my job working, but I had to stop using the tdropbox family components (I didn't found any two-minutes solution).

So, my job had this structure:

tdropboxconnection -> tdropboxlist -> tdropboxget -> do stuff


That's what I did:

- I went to my dropbox app console and generated and auth_token. I hoped that would be enough to make the dropbox connection work again. It didn't. So:


- I removed the tdropbox connection

- The tdropboxlist turned into:

   · trest component. Url: "", Method: post. Headers: Authorization "Bearer base64(appkey:appsecret)", Content-Type: "application/json" (I got this info from the dropbox migration guide site)

   · The response has a schema with a 'Body' string field. I had to parse this 'Body' string to get and iterate all the "path_display" properties from the entries array (these were the files I actually wanted)


- The tdropboxget turned into the following routine (I took the code from



public static void downloadFromUrl(String dropboxFilePath, String destinationFilepath) throws IOException{
    URL url = new URL("");
        HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();
        httpConn.setRequestProperty ("Authorization", "Bearer xxxxxx");
        httpConn.setRequestProperty("Dropbox-API-Arg", "{\"path\": \""+ dropboxFilePath +"\"}");
        int responseCode = httpConn.getResponseCode();
        // always check HTTP response code first
        if (responseCode == HttpURLConnection.HTTP_OK) {

            // opens input stream from the HTTP connection
            InputStream inputStream = httpConn.getInputStream();
            // opens an output stream to save into file
            FileOutputStream outputStream = new FileOutputStream(destinationFilepath);
            int bytesRead = -1;
            byte[] buffer = new byte[4096];
            while ((bytesRead = != -1) {
                outputStream.write(buffer, 0, bytesRead);
            System.out.println("File downloaded");
        } else {
            System.out.println("No file to download. Server replied HTTP code: " + responseCode);


Hope that helps someone.