question

joel-3 avatar image
joel-3 asked

Error Occured in the send email action.

This error was thrown in our Title when a customer was trying to verify their email.

"Error": {
    "Error": null,
    "Message": "Error occurred when running action SendEmailAction"
},

If you want to have a look, our titleID is: F3F6

This is our rule setup, it's simply when a customer updates their contact email, we send them the verification email.

The problem is, it is failing to run this action in every case and no one is getting verification emails anymore.

ourrule.png (23.5 KiB)
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

Actually, it was an issue on our side. There was an update that caused the configuration file for email to be temporarily unavailable. We've posted the fix, so your original rule should be sending the emails now.

3 comments
10 |1200

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

eric_inspace avatar image eric_inspace commented ·

@Brendan Is this going to be a regular occurance? There was a similar outage regarding email exactly one week ago. Surely there are other PlayFab titles than us that rely on email for the sign-up process or user comms.

Is there anything in place that gives us a heads-up in the case of a potential outage?

1 Like 1 ·
brendan avatar image brendan eric_inspace commented ·

Errors? No, we try hard to make sure there aren't errors. That's a big part of the team's responsibility. When something like this does happen, we have a process where we identify why it happened, what we can do to prevent it in future, and what additional alerts we can set up to help make sure we're immediately aware if something does happen.

But yes, you are correct that this hit us on the 13th, as well. I've specifically called that out to the team, as it sounds like they haven't completed the post-mortem work from the previous instance (so I've asked them to prioritize this).

0 Likes 0 ·
joel-3 avatar image joel-3 commented ·

@Brendan

Tried changing it back, the same error still occurs.

[EDIT] Tried again and it worked, must of only just propogated then.

0 Likes 0 ·
joel-3 avatar image
joel-3 answered

So, we tried making a fresh email template, and sending it via cloud script to see what's going on, and get this monstrosity of an error log back:

{
    "FunctionResult": null,
    "Logs": [
        {
            "Level": "Error",
            "Message": "PlayFab API request error",
            "Data": [
                [
                    []
                ],
                [
                    [
                        [
                            []
                        ],
                        [
                            []
                        ]
                    ]
                ],
                [
                    []
                ],
                [
                    [
                        [
                            []
                        ],
                        [
                            []
                        ],
                        [
                            []
                        ],
                        [
                            []
                        ],
                        [
                            []
                        ],
                        [
                            []
                        ],
                        [
                            []
                        ]
                    ]
                ]
            ]
        }
    ],
    "ExecutionTimeSeconds": 0.113754,
    "MemoryConsumedBytes": 55496,
    "APIRequestsIssued": 1,
    "HttpRequestsIssued": 0,
    "Error": {
        "Error": "CloudScriptAPIRequestError",
        "Message": "The script called a PlayFab API, which returned an error. See the Error logs for details.",
        "StackTrace": "Error\n    at handlers.SendPWVerificationEmail (D3FB-main.js:168:9)"
    }
}]


10 |1200

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

joel-3 avatar image
joel-3 answered

We've found a workaround, by having the action execute a cloud script that sends the email seems to work fine, however for some reason the "Send Email" action itself is throwing that error.

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.