We are doing all the API calls to third party apps which we have authenticated using OAuth. Now calling the request api passing this <%= oauth_iparams.domain %>
from any Handler is working fine. But when the same code is executed through SMI I am getting the error
{"status":400,"headers":{},"response":"Error while substituting the templates","errorSource":"APP"}
.
Why is it that the OAuth template is replacing API calls that are made from Serverless code through SMI functions? Can someone please help me with this?
If not is it even possible to read this OAuth value anywhere else, so that we can persist and use it?