【问题标题】:Error code 500 while saving location for Estimote Indoor Location为 Estimote 室内位置保存位置时出现错误代码 500
【发布时间】:2017-08-08 09:05:53
【问题描述】:

我有 3 个带有电子邮件地址的室内定位信标包,在保存位置以估计云时收到错误消息....错误消息如下:-

保存位置时出错:可选(错误域=ESTRequestBaseErrorDomain Code=500 “Estimote Cloud 无法处理请求。” UserInfo={NSLocalizedDescription=Estimote Cloud 无法处理请求。, NSLocalizedRecoverySuggestion=检查原因字段以验证什么发生了某种错误。})

下面是我的实现:-

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
locationBuilder.setLocationName("my space")

locationBuilder.setLocationBoundaryPoints([
    EILPoint(x: 0.00, y: 0.00),
    EILPoint(x: 0.00, y: 9.85),
    EILPoint(x: 4.56, y: 9.85),
    EILPoint(x: 4.56, y: 0.00)])

locationBuilder.addBeacon(withIdentifier: "mybeaconid1", atBoundarySegmentIndex: 0, inDistance: 3.5, from: .leftSide)
locationBuilder.addBeacon(withIdentifier: "mybeaconid2", atBoundarySegmentIndex: 1, inDistance: 1.1, from: .rightSide)
locationBuilder.addBeacon(withIdentifier: "mybeaconid3", atBoundarySegmentIndex: 2, inDistance: 5.7, from: .leftSide)
locationBuilder.addBeacon(withIdentifier: "mybeacon4", atBoundarySegmentIndex: 3, inDistance: 3, from: .rightSide)

locationBuilder.setLocationOrientation(50)

let location = locationBuilder.build()

ESTConfig.setupAppID("myAppId", andAppToken: "myAppToken")

let addLocationRequest = EILRequestAddLocation(location: location!)

addLocationRequest.sendRequest { (location, error) in
    if error != nil {
        print("Error when saving location: \(String(describing: error))")
    } else {
        print("Location saved successfully: \(String(describing: location?.identifier))")
    }
}

beaconManager.requestAlwaysAuthorization()

return true
}

【问题讨论】:

  • 我查了一下,我确实购买了硬件、一个云帐户和一个带有 App Token 的应用程序
  • 响应表明存在服务器端错误,因此很可能您的代码是正确的。如果您的代码有任何问题,则说明您没有以后端期望的格式设置网络请求,因此出现错误。

标签: ios swift swift3 estimote indoor-positioning-system


【解决方案1】:

我曾就这个问题向 Estimate Support 询问过,这个错误是由于他们的服务器上的一些问题而发生的,现在这就像一个魅力。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-04-18
    • 1970-01-01
    • 2013-01-24
    • 2019-02-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-01
    相关资源
    最近更新 更多