Transformation and Routing in TYK

Thanks for your response Leon. I have added jsvm_timeout to tyk.conf file but it is no longer showing that timeout error. The error I have now is: “Failed to run JS middleware”, though I have jsvm enabled in the tyk.conf file. And I am using virtual endpoint for the javascript code. Below is the javascript code I am using to call the upstream api:

function myAttempt(request, session, config) {
newRequest = {
“Method”: “POST”,
“Body”: request.Body,
“Domain”: “https://api.fcmb.com/fcmb/test/v1/wallet/Customerwallet/new”,

};
//response = TykMakeHttpRequest(newRequest);
response = TykMakeHttpRequest(JSON.stringify(newRequest));
usableResponse = JSON.parse(response);
var bodyObject = JSON.parse(usableResponse.Body);

//return TykJsResponse(bodyObject, session.meta_data)
return TykJsResponse(response, session.meta_data);
}

Is there anything I have done wrong. Kindly assist.
Thanks