I have hosted one Nodejs app on APIGEE edge and some of the parameters like app_name, scopes and others I need to send it to backend services. How can I access those variable in hosted nodejs App.
I have tried doing context.getVariable but didnt work well. Can someone please help?
Solved! Go to Solution.
I think the nodejs targets were deprecated some time ago. A couple years? Maybe 2018?
So you should not be using them.
Can you clarify what you're using?
Maybe it's a "hosted target" which is also deprecated at this point. (Sorry)
The way I've solved this problem is, in the target flow, use AssignMessage to explicitly add query params or headers to the request that gets sent to the hosted target. Then extract that information using the normal nodejs mechanisms from that hosted target.