Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Raymond Y.2's avatar
Raymond Y.2
New member | Level 1
10 years ago

unknown tag 'xs' Error in API function call - Java SDK GetThumbnailBuilder

I'm recieving an error with the following message whenever I try to build a thumbnail:

com.dropbox.core.DbxException$BadRequest: Error in call to API function "files/get_thumbnail": HTTP header "Dropbox-API-Arg": size: unknown tag 'xs'

This error occurs after running this line of code.

dropBoxClient.files.getThumbnailBuilder(meta.pathLower).format(Files.ThumbnailFormat.png).size(Files.ThumbnailSize.xs).start();

dropBoxClient:

DbxRequestConfig requestConfig = new DbxRequestConfig("examples-account-info", userLocale);
DbxClientV2 dropBoxClient = new DbxClientV2(requestConfig, AUTHKEY)

3 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Thanks! This is a known issue that should be resolved in the next version of the SDK.

    Specifically, the SDK will be updated so that the value used for Files.ThumbnailSize.xs is instead 'w32h32'.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    This should be fixed in the latest version of the SDK. Let us know if you're still having any trouble.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!