【问题标题】:Why am I getting 405 code for Time Estimates while I can get 200 code for Product Types为什么我会得到 405 的 Time Estimates 代码,而我却能得到 200 的 Product Types 代码
【发布时间】:2015-10-31 14:54:15
【问题描述】:

我正在使用UberKit,直到昨天它对我都非常有用。

我可以成功发出 GET 请求以获取 Product Types(返回 4 种类型的汽车和 200 code)但无法获取 Time Estimates 数据(返回 NO 错误,NO 数据但 405 code)。

根据Uber API Reference page

401 Unauthorized the request requires user authentication (not logged in).

但根据他们的说法,Product TypesTime Estimates 不需要访问令牌,事实上,我确实可以在没有上述访问令牌的情况下获取 Product Types 数据。

这里有没有其他人遇到过这种情况,谢谢。

【问题讨论】:

  • 今天我测试了Product TypesPrice EstimatesTime Estimates,只有Time Estimates 给了我401 code,而其他人返回了很好的200 code。还有其他人面临同样的问题吗?如果是这样,我想问题可能出在 Uber 这边。
  • 有其他人遇到过这种问题吗?

标签: ios https uber-api


【解决方案1】:

Here 是我发布的另一个类似问题,我已经从 Uber 支持官方那里得到了答案。

事实证明,在我所在的中国,完整的生产 Uber API 尚未完全启动。

这就是为什么中国人会得到如此奇怪的响应代码的原因。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-10-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-14
    • 1970-01-01
    相关资源
    最近更新 更多