Ich versuche, die tutorial on AzureAzure MobileServicePushFailedException auf Android
Jetzt ist die offline storage
funktioniert gut eine Anwendung mit offline sync
und anschließend zu bauen, aber keine Elementen hinzugefügt, um auf dem Server mit folgenden Ausnahme:
Error syncAsync com.microsoft.windowsazure.mobileservices.table.sync.push.MobileServicePushFailedException
java.util.concurrent.ExecutionException: com.microsoft.windowsazure.mobileservices.table.sync.push.MobileServicePushFailedException
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)
at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)
at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)
at irisrecognition.example.com.irisrecognition.util.ItemManager$5.doInBackground(ItemManager.java:237)
at irisrecognition.example.com.irisrecognition.util.ItemManager$5.doInBackground(ItemManager.java:232)
at android.os.AsyncTask$2.call(AsyncTask.java:288)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: com.microsoft.windowsazure.mobileservices.table.sync.push.MobileServicePushFailedException
at com.microsoft.windowsazure.mobileservices.table.sync.MobileServiceSyncContext.pushOperations(MobileServiceSyncContext.java:939)
at com.microsoft.windowsazure.mobileservices.table.sync.MobileServiceSyncContext.consumePushSR(MobileServiceSyncContext.java:834)
at com.microsoft.windowsazure.mobileservices.table.sync.MobileServiceSyncContext.access$1100(MobileServiceSyncContext.java:85)
at com.microsoft.windowsazure.mobileservices.table.sync.MobileServiceSyncContext$PushSyncRequestConsumer.run(MobileServiceSyncContext.java:1127)
Hier ist der Code für onCreate()
try {
mClient = new MobileServiceClient(
Constants.ROOT_URL,
"kfogvaexzeDLYyPbRmBiHxQEBUYpku30",
this).withFilter(new ProgressFilter());
initLocalStore().get();
syncAsync();
refreshItemsFromTable();
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
und einige mehr ...
Berechtigungen für meine Tabelle sind mit Application Key
zulässig. Irgendwelche Ideen?
EDIT:
Diese auf dem Server in der Protokolldatei angezeigt:
ERROR
{ [Error: getaddrinfo ENOTFOUND] code: 'ENOTFOUND', errno: 'ENOTFOUND', syscall: 'getaddrinfo' }
Veröffentlichen Sie die Stack-Trace – BanditoBunny
Debuggen Sie mit Fiddler, um zu sehen, welche Anrufe an den Server gesendet werden. Was sind die Details der Push-Failed-Ausnahme? –
Bearbeiten der Frage zum Einfügen der gesamten Ausnahme jetzt. Keine Ahnung, was Fiddler es sich ansehen wird – 4ndro1d