When the playfab client API calls the locally running azure functions cloudscript from Unity, the response always gives an error
SerializationException: Invalid JSON string PlayFab.Json.PlayFabSimpleJson.DeserializeObject (System.String json) (at Assets/PlayFabSDK/Shared/Internal/SimpleJson.cs:570) PlayFab.Json.PlayFabSimpleJson.DeserializeObject (System.String json, System.Type type, PlayFab.Json.IJsonSerializerStrategy jsonSerializerStrategy) (at Assets/PlayFabSDK/Shared/Internal/SimpleJson.cs:602) PlayFab.Json.PlayFabSimpleJson.DeserializeObject[T] (System.String json, PlayFab.Json.IJsonSerializerStrategy jsonSerializerStrategy) (at Assets/PlayFabSDK/Shared/Internal/SimpleJson.cs:610) PlayFab.Json.SimpleJsonInstance.DeserializeObject[T] (System.String json) (at Assets/PlayFabSDK/Shared/Internal/ISerializer.cs:85) PlayFab.Internal.PlayFabUnityHttp.OnResponse (System.String response, PlayFab.Internal.CallRequestContainer reqContainer) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:176) UnityEngine.Debug:LogException(Exception) PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at
I have even tried returning a simple string from the function to the client, but it gives the same error. I am using the latest ExecuteFunction.cs that is provided here https://github.com/PlayFab/pf-af-devfuncs/blob/main/csharp/ExecuteFunction.cs, and have made a Github issue here https://github.com/PlayFab/pf-af-devfuncs/issues/12
It works fine when calling the live function on azure cloud, it's just locally it doesn't work.
This is very important as I need to develop locally without having to affect production! The local workflow is already a bit terrible, I have to create and delete a json file just to get it to use the local functions URL, I can't even change it from code!!!