【问题标题】:NSURLErrorDomain (Code=-1012) while trying to get Uber auth tokenNSURLErrorDomain (Code=-1012) 在尝试获取 Uber 身份验证令牌时
【发布时间】:2015-09-14 21:04:01
【问题描述】:

我正在使用 UberKit 将 Uber API 集成到我的应用中。

按下我的登录按钮调用[uberKit startLogin]; 并设置clientIDclientSecretapplicationNameredirectURLdelegate

应用程序从 Safari 使用授权码返回后,我无法获得经过身份验证的令牌!在UberKit.m 的函数getAuthTokenForCode: 中总是失败:

Error in sending request for access token Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x16e7edf0 {NSErrorFailingURLKey=https://login.uber.com/oauth/token, NSErrorFailingURLStringKey=https://login.uber.com/oauth/token, NSUnderlyingError=0x16e7d600 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)"}

你能告诉我可能出了什么问题吗?

提前致谢

【问题讨论】:

    标签: ios xcode nsurlerrordomain


    【解决方案1】:

    我尝试了几次,结果你必须确保你在优步开发者网站上注册的应用名称与你的 app bundle 标识符匹配。

    【讨论】:

    • 检查了很多次,但仍然遇到同样的问题,有什么解决办法吗??
    猜你喜欢
    • 2013-12-04
    • 2015-06-01
    • 2020-07-31
    • 2018-05-20
    • 2015-05-10
    • 1970-01-01
    • 2019-12-05
    • 2015-11-04
    • 2015-06-21
    相关资源
    最近更新 更多