var url = msg.payload.url;
var urlEncoded = encodeURIComponent(url);
var requestUrl = 'https://opengraph.io/api/1.1/site/' + urlEncoded + '?accept_lang=auto&cache_ok=false&use_proxy=true&app_id=XXX';
msg.payload.requestUrl = requestUrl;
return msg;
before calling an api using a http request with
Method: Get
URL: {{msg.payload.requestUrl}}
Payload: ignore
However, I am always presented with an error:
"No url specified"
although the log shows a requestUrl https://opengraph.io/api/1.1/site/http%3A%2F%2Fgoogle.com?accept_lang=auto&cache_ok=false&use_proxy=true&app_id=XXX which works in the terminal. So I guess the error does not appear whilst generating the URL but rather when calling it; any idea how to fix this?