question

Hamza Lazaar avatar image
Hamza Lazaar asked

[SOLVED] Unknown error ("Failed to parse response from server")

Lately after some git operations we started to get Unknown error ("Failed to parse response from server") after successful login. I don't know why but this is very weird. I'm also not sure if the reflection error is due to our code.

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.\r\n  at System.String.FormatHelper (System.Text.StringBuilder result, IFormatProvider provider, System.String format, System.Object[] args) [0x000e8] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/String.cs:1925 \r\n  at System.String.Format (IFormatProvider provider, System.String format, System.Object[] args) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/String.cs:1873 \r\n  at System.String.Format (System.String format, System.Object[] args) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/String.cs:1868 \r\n  at Singleton`1[DataManager].get_Instance () [0x00083] in C:\\Users\\hmzla\\Desktop\\hp\\My Documents\\Unity Projects\\WordCore_5_alpha\\Assets\\_Scripts\\Utils\\Singleton.cs:24 \r\n  at PlayFabLogic.OnLoginCallback (PlayFab.ClientModels.LoginResult result) [0x0001d] in C:\\Users\\hmzla\\Desktop\\hp\\My Documents\\Unity Projects\\WordCore_5_alpha\\Assets\\_Scripts\\Managers\\PlayFabLogic.cs:458 \r\n  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)\r\n  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222 \r\n  --- End of inner exception stack trace ---\r\n  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232 \r\n  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115 \r\n  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000b9] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Delegate.cs:443 \r\n  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/MulticastDelegate.cs:71 \r\n  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System/Delegate.cs:415 \r\n  at PlayFab.Internal.ResultContainer`1[PlayFab.ClientModels.LoginResult].HandleResults (PlayFab.CallRequestContainer callRequest, System.Delegate resultCallback, PlayFab.ErrorCallback errorCallback, System.Action`2 resultAction) [0x00099] in C:\\Users\\hmzla\\Desktop\\hp\\My Documents\\Unity Projects\\WordCore_5_alpha\\Assets\\PlayFabSDK\\Internal\\ResultContainer.cs:55

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image
brendan answered

Hamza, can you wrap up the repro sample (project) for us and send it to us at devrel?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hamza Lazaar avatar image
Hamza Lazaar answered

Hi, sorry about the delay. This issue was caused by a typo in our code. I apologize about any inconvenience. 

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image
brendan answered

No worries - glad you tracked it down!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.