說這個問題被多次詢問並且從未正確回答,這非常難過。如何調試「DialogError:到服務器的連接不成功」錯誤?
許多人在嘗試授權應用程序時出現此錯誤,而人們不得不說的只有重新啓動手機或刪除緩存。
現在,這可能適用於幾個人,但它不是一個真正的探索,也不是一個嚴肅的解決方案。
有沒有在這個錯誤沒有爆炸沒有在網上,所以我希望有人可以解釋有關不同的錯誤號碼,所以我可以找出我的問題在哪裏,並有不同類型的錯誤的某種數據中心,沒有解釋。
錯誤,我在迄今爲止的話題和我的發現:
- 礦:或似乎隨機
- 417 - 這個錯誤是一個主題是在解釋說:
Error- 417 Expectation Failed
The 417 status code means that the server was unable to properly complete the request. One of the headers sent to the server, the "Expect" header, indicated an expectation the server could not meet.
Can some一個解釋任何這些錯誤或一般的任何提示?
而對於我的問題,我使用的授權方法的標準代碼公佈的文件中,
的logcat:
06-10 23:48:11.872: D/Facebook-WebView(1358): Webview loading URL: https://m.facebook.com/dialog/oauth?type=user_agent&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=touch&client_id=MYAPPID
06-10 23:48:11.884: W/webcore(1358): Can't get the viewWidth after the first layout
06-10 23:48:11.899: V/webview(1358): OnSizeChanged: Enter
06-10 23:48:11.903: D/Facebook-authorize(1358): Login failed: com.facebook.android.DialogError: The connection to the server was unsuccessful
06-10 23:48:11.903: D/Facebook-WebView(1358): Webview loading URL: https://m.facebook.com/dialog/oauth?type=user_agent&redirect_uri=fbconnect%3A%2F%2Fsuccess&display=touch&client_id=MYAPPID
該解決方案適用於我,但我很擔心。這是否會成爲最終用戶隨機出現的問題?這種修復方法對開發很好,但我不認爲這是一個很好的解決方案,希望用戶需要經過。 – HotN
@ HotN我現在面臨這個問題,該解決方案的工作。但同樣的道理,即使我們只是爲了讓用戶知道如何處理這種情況,我們如何能夠捕捉到這種錯誤 – Androyds