Hi all,
I am trying to run the example in (Quickstart: Writing a PlayFab CloudScript using Azure Functions) here:
https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript-af/quickstart
But with no success.
I have deployed the function (HelloWorld) and I have placed the class (CS2AFHelperClasses.cs) along with it, and it has deployed successfully.
But when I create a rule that calls this function, I get this error in playstream:
"Error": "CloudScriptAzureFunctionsHTTPRequestError", "Message": "Invocation of cloud script function Function1 failed"
and when I use Azure Functions (Code + Test) section, it says:
500 Internal Server Error
and in the Treminal it says:
2020-10-14T14:28:37.950 [Information] Executing 'HelloWorld' (Reason='This function was programmatically called via the host APIs.', Id=8b47b4da-0757-4631-ad48-cca923913895)
2020-10-14T14:28:37.981 [Error] Executed 'HelloWorld' (Failed, Id=8b47b4da-0757-4631-ad48-cca923913895, Duration=3ms)Object reference not set to an instance of an object.
Any ideas?
Thank you in advance.