question

freedust92@gmail.com avatar image
freedust92@gmail.com asked

Invokation of cloud script Failed....

I'm using CloudScript and haven't changed anything in recent months. From one day on, the function suddenly stops working. Ask for help.

Raw event JSON

{
    "SchemaVersion": "2.0.1",
    "FullName": {
        "Namespace": "playfab.functions",
        "Name": "function_executed"
    },
    "Id": "d307b8b81e83496e8255a3dca7574efa",
    "Timestamp": "2021-10-30T13:00:27.7458585Z",
    "Entity": {
        "Id": "B780BB68DCCE7F62",
        "Type": "title_player_account"
    },
    "Originator": {
        "Id": "B780BB68DCCE7F62",
        "Type": "title_player_account"
    },
    "OriginInfo": {
        "Id": null,
        "Timestamp": null,
        "CustomTags": null
    },
    "Payload": {
        "Source": "API",
        "FunctionName": "UpdateUserMoney",
        "ExecutionTimeMilliseconds": 0,
        "Result": {
            "ErrorCode": "CloudScriptAzureFunctionsHTTPRequestError",
            "Message": "Invocation of cloud script function UpdateUserMoney failed",
            "ErrorAndMessage": {
                "Item1": "CloudScriptAzureFunctionsHTTPRequestError",
                "Item2": "Invocation of cloud script function UpdateUserMoney failed"
            }
        },
        "ResultTooLarge": false
    },
    "EntityLineage": {
        "namespace": "EC2572DCE7A64759",
        "title": "90256",
        "master_player_account": "9F932DD3F8F19F26",
        "title_player_account": "B780BB68DCCE7F62"
    },
    "ExperimentVariants": null 

}

CloudScript
10 |1200

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

1 Answer

·
Gosen Gao avatar image
Gosen Gao answered

This error may be caused by many reasons. Based on the event data we can’t make sure what the real reason is. To locate the problem, you may need to add debugging sentences in your code and review Azure function document on Monitor Azure Functions | Microsoft Docs to collect logs. Otherwise, following the instructions on Debugging Azure Functions - PlayFab | Microsoft Docs to streaming logs is an alternative solution.

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.