Tonight I started getting an error when my mobile app called a custom back-end function flow that’s been working for over a year. The error I am seeing in the logs is:
“[“Within app registration, got error emailing confirmation of registration to user: 4442b8a5-4d02-4b39-aa25-d502975826c5 error was: Error: server responded with - {"message":"","details":{"wix-response-context-bin":"CicKJQoZeC13aXgtcGV0cmktY29va2llLWRvbWFpbhIILndpeC5jb20=","server":"envoy","x-envoy-upstream-service-time":"17","date":"Wed, 03 Mar 2021 02:59:03 GMT","failed-client.options.authority":"com.wixpress.email-subscriptions-app","content-type":"application/grpc","failed-client.method":"com.wixpress.emailsubscriptions.v1.EmailSubscriptionsService/GenerateUnsubscribeLink","x-seen-by":"iNzairCM74Jm+18Ga2HaNUPuECxeP8kYT/2eERyb/yUaWyug/ZdHQ36uOAkr89T0,qJS91GsscGZlb16v+8nwmBdp4yrdhq6Sk5bJjiFPnZwPUN6zYCeYUhP+LoeE7OiY","failed-client.options.deadline":"18.980365738s from now"}} (403)”]”
Is this a known new error?
The code in question (again - has been working fine for well over a year) is here:
await wixUsers.emailUser( ‘verifyTestAppRegistration’ , userid, {
“variables” : {
“subscriberFirstName” : firstName,
“verificationCode” : generatedCode,
“expirationDate” : expirationDateString
}
})
.then( () => {
console.log( "Triggered email sent to user with id: " + userid);
response.body = {[RESULT_KEY]: **true** ,[REGISTRATIONTOKEN_ARG]:registrationtoken,[USERID_ARG] : userid};
} )
. **catch** ( (error) => {
console.error( "Within app registration, got error emailing confirmation of registration to user: " + userid + " error was: " + error);
response.body = {[RESULT_KEY]: **false** ,[ERRORMSG_KEY] : "Could not generate email with verification code." };
});
Thanks!
Tad