cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

The method files().saveUrlCheckJobStatus("asyncJobId") returns FAILED after sharing folder

Explorer | Level 3

Problem

Using dropbox-core-sdk-2.1.2.jar in our application and created a full dropbox app to work with dropbox API. This is my code used to save an url to a dropbox path and check whether the save url is completed yet.

 

Step 1. Saves a url to a dropbox path 

 

1. SaveUrlResult result = getDropboxClient().files().saveUrl(path, url);
2. // returns either SaveUrlResult.Tag.ASYNC_JOB_ID or SaveUrlResult.Tag.COMPLETE
3. // Given that dropbox path=/Delivery/ClientFolder/Subfolder/blahblah/test.jpg

 

 Step 2. Check the save url job of an asyncJobId to see if the file saving from a url has been completed yet.

 

4. SaveUrlJobStatus saveUrlJobStatus = getDropboxClient().files()
.saveUrlCheckJobStatus(asyncJobId);

5. LOG.trace("saveUrlJobStatus: {}", saveUrlJobStatus.tag().name());

6. if (SaveUrlJobStatus.Tag.FAILED.equals(saveUrlJobStatus.tag())) {
7.     LOG.error("saveUrlError: {}", saveUrlJobStatus.getFailedValue());
4. }

 

 The above code segment seems to work as expected. I can see this from the output logs:

 

saveUrlJobStatus: COMPLETE

 

 

 I then go to dropbox and share the folder /Delivery/ClientFolder to our client so that they could sync the folder to their dropbox account. After doing so, the method saveUrlCheckJobStatus() always returns FAILED for any asyncJobId.

saveUrlJobStatus: FAILED
saveUrlError: NOT_FOUND

 

Does anyone know why this happens after sharing folder? 

 

 ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** ********** *****

I looked into dropbox API java docs and it mentions that "The file where the URL is saved to no longer exists." (below) that seems not to suggest any idea to fix. Same error when doing the above 2 steps using API explorer.

 

 

public final class SaveUrlError {
    /**
     * Discriminating tag type for {@link SaveUrlError}.
     */
    public enum Tag {
       ... 
        /**
         * The file where the URL is saved to no longer exists.
         */
        NOT_FOUND,
...
}

  

Also, tried removing the unshare but still does not work after having the problem. Only until I delete the folder "ClientFolder" and it works again but we need to share folder to our client to sync files after uploading.

 

So any idea that would be very much appreciated!

 

Thanks 

 

 

2 Replies 2
Highlighted

Re: The method files().saveUrlCheckJobStatus("asyncJobId") returns FAILED after sharing fo

Dropboxer
Dropboxer
Thanks for the detailed report! We're looking into it.
Highlighted

Re: The method files().saveUrlCheckJobStatus("asyncJobId") returns FAILED after sharing fo

Dropboxer
Dropboxer
This should be fixed now.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?