SwiftyDropbox getCurrentAccount 错误

SwiftyDropbox getCurrentAccount Error

我正在 iOS 项目中试用 SwiftyDropbox,当我使用教程中的这段代码时...

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!)
    }
  }
}

...然后我打印 response 它 returns nil 我在 Xcode 控制台中收到以下错误:

Bad Input: Error in call to API function "users/get_current_account": request body: could not decode input as JSON

我正在使用 CocoaPod 的 2.0.3 版本。

知道我为什么会收到此错误吗?

这是我们正在处理的版本 2.0.3 的一个已知问题。

同时,您可以暂时降级到 2.0.2 来解决这个问题。