我一直在使用Unity 3D的Parse教程试图让玩家注册。我已经设置了初始化行为。
var user = new ParseUser()
{
Username = usernameField.value,
Password = passwordField.value,
Email = emailField.value
};
registerTask = user.SignUpAsync();
但是,当我测试此方法并调用SignUpAsync()时,它将尝试连接到服务器并且连接将花费很长时间(大约10-20秒)。后来,它会失败,Parse的任务会有以下异常。知道如何解决这个问题吗?
Proxy CONNECT abortedSystem.AggregateException: Exception of type 'System.AggregateException' was thrown.
-----------------
Parse.ParseException: Proxy CONNECT aborted
at Parse.ParseClient+<>c__DisplayClass8.<RequestAsync>b__7 (System.Threading.Tasks.Task`1 t) [0x00000] in <filename unknown>:0
at Parse.Internal.InternalExtensions+<>c__DisplayClass1`2[System.Tuple`2[System.Net.HttpStatusCode,System.String],System.Tuple`2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary`2[System.String,System.Object]]].<OnSuccess>b__0 (System.Threading.Tasks.Task t) [0x00000] in <filename unknown>:0
at Parse.Internal.InternalExtensions+<>c__DisplayClass7`1[System.Tuple`2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary`2[System.String,System.Object]]].<OnSuccess>b__6 (System.Threading.Tasks.Task t) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.Task+<>c__DisplayClass3`1+<>c__DisplayClass5[System.Threading.Tasks.Task`1[System.Tuple`2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary`2[System.String,System.Object]]]].<ContinueWith>b__2 () [0x00000] in <filename unknown>:0
UnityEngine.Debug:Log(Object)
Calclavia.Artillects.MenuManager:Update() (at Assets/Artillects/Source/Menu/MenuManager.cs:81)
编辑:
特定内部异常打印以下内容:
Error message Proxy CONNECT aborted
UnityEngine.Debug:Log(Object)
Error code: OtherCause
UnityEngine.Debug:Log(Object)