从 Dropbox API 获取文件时 X-Dropbox-Metadata header 错误 JSON

Bad JSON in X-Dropbox-Metadata header error when getting file from Dropbox API

我的应用在使用 Dropbox API.

获取 JPG 文件时遇到问题(而其他图像没问题)

我的代码如下所示:

DbxRequestConfig config = new DbxRequestConfig("my-awesome-dropbox-app/1.0", Locale.getDefault().toString(), AppengineHttpRequestor.Instance);
DbxClient client = new DbxClient(config, dropboxToken);
DbxEntry.File md;
try {
   md = client.getFile(completePath, null,  outputStream);
} catch (DbxException e) {
   e.printStackTrace();
}
outputStream.close();

错误是:

[INFO] com.dropbox.core.DbxException$BadResponse: Bad JSON in X-Dropbox-Metadata header: 1.141: "photo_info": expecting the end of an object ("}")
[INFO]  at com.dropbox.core.DbxClient.startGetSomething(DbxClient.java:475)
[INFO]  at com.dropbox.core.DbxClient.startGetFile(DbxClient.java:452)
[INFO]  at com.dropbox.core.DbxClient.getFile(DbxClient.java:412)

奇怪的是PNG文件没有这个问题。可能导致此错误的原因是什么?

这个问题的答案是 git pull 最新版本 Dropbox Java API 然后 git install