Ich hatte 3 Indoor-Location-Beacons-Paket mit einer E-Mail-Adresse und erhalte eine Fehlermeldung beim Speichern eines Standortes zur Schätzung der Cloud .... die Fehlermeldung wie folgt: -Fehlercode 500 beim Speichern des Standorts für Estimote Indoor Location
Fehler beim Speichern des Standorts: Optional (Fehlerdomäne = ESTRequestBaseErrorDomain Code = 500 "Estimote Cloud konnte Anforderung nicht verarbeiten." UserInfo = {NSLocalizedDescription = Estimote Cloud konnte Anforderung nicht verarbeiten., NSLocalizedRecoverySuggestion = Überprüfen Sie das Grundfeld, um festzustellen, welche Art von Fehler passiert.})
unten ist meine Implementierung: -
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
}
https://forums.estimote.com/t/error-when-saving-location-estimote-cloud-failed-to-handle-request/6121/2? – Larme
Ich überprüfte und ich kaufte die Hardware, ein Cloud-Konto und eine App mit App Token – aznelite89
Die Antwort zeigt an, dass es einen serverseitigen Fehler gibt, also ist Ihr Code wahrscheinlich richtig. Wenn Probleme mit Ihrem Code auftreten, haben Sie Ihre Netzwerkanforderung nicht in dem Format eingerichtet, in dem das Back-End sie erwartet, und daher auch auf den Fehler. –