Suddenly we start seeing an error is the logs of type
Failed Sending Notification and we checked log details it was due to
Cannot read property 'slice' of undefined, line:27, col:13.
I still don’t know the source of that error. I’ve checked our DB Connections → Custom which is enabled, but there is no use of .slice over there. So where is the error coming from? or how could we know exactly the source of that?
Welcome to the Auth0 Community!
Can you post the entirety of the error (omitting sensitive data)?
Here is the whole error log
"error": "Cannot read property 'slice' of undefined, line:27, col:13"
Managed to find the source of the issue which was coming from Email Verification Template. I wish the error messages where more descriptive. Also, the weird thing is that when we call the resend API
/api/v2/jobs/verification-email it works without showing any issue, just the automated verification email that is being sent by Auth0 after creating a new User.
Thanks a lot for your assistance
Great, glad you found a resolution. It looks like the log gives a direct reference to the source of the issue, the
verify_email notification. What would you like to see to be more descriptive? I’d be happy to pass the feedback along.
Well, now it make sense actually. I mean
verify_email is mentioned in the error log but didn’t first it was a bit vague like is it related to template or custom DB connection scripts or what exactly. I think mentioning the source of the issue like the Email template name, or the file that it occurred on might make it easier to debug in that case.
Thanks again for your prompt assistance
Thanks for the added context!