我正在iOS项目中试用iOS,当我使用本教程中的代码时.
if let client = Dropbox.authorizedClient {
// Get the current user's account info
client.users.getCurrentAccount().response { response, error in
print(response)
if let account = response {
self.accountStatus.text = "\(account.email)"
} else {
print(error!)
}
}
}...and我打印response,它返回零,并在Xcode控制台中得到以下错误:
错误输入:调用API函数“users/get_current_account”时出错:请求主体:未能将输入解码为JSON
我使用的是2.0.3版本的CocoaPod。
知道我为什么会犯这个错误吗?
发布于 2016-01-29 00:45:34
这是我们正在研究的2.0.3版本中的一个已知问题。
在此期间,您可以通过将目前的评级下调到2.0.2来解决这一问题。
https://stackoverflow.com/questions/35074961
复制相似问题