为 Estimote 室内定位保存位置时出现错误代码 500
Error code 500 while saving location for Estimote Indoor Location
我有 3 个带有电子邮件地址的室内定位信标包,在保存位置以估计云的过程中收到一条错误消息....错误消息如下:-
保存位置时出错:可选(Error Domain=ESTRequestBaseErrorDomain Code=500 "Estimote Cloud failed to handle request." 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
}
我曾就此问题向 Estimate Support 询问过,这个错误是由于他们服务器上的某些问题而发生的,现在它运行得很好。
我有 3 个带有电子邮件地址的室内定位信标包,在保存位置以估计云的过程中收到一条错误消息....错误消息如下:-
保存位置时出错:可选(Error Domain=ESTRequestBaseErrorDomain Code=500 "Estimote Cloud failed to handle request." 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
}
我曾就此问题向 Estimate Support 询问过,这个错误是由于他们服务器上的某些问题而发生的,现在它运行得很好。