I’m using version 3.0 of the developer platform and fdk version 9.1.2, and I’m hitting an API once a react component loads using SMI. I’m calling an API to get information from our public APIs using bent npm package to call it, but the IP received is a non-whitelisted one.
Code block:
const post = bent(usServifyDomain, 'POST', 'json', 200, {
'Content-Type': 'application/json'
});
try {
const response = await post('consumer/profile', data);
if (!response || !response.success || !response.data) {
console.error('Get Profile failure!');
return {}
}
return response.data;
} catch(err) {
console.error("catch error:", err);
}
Whitelisted IPs:
52.1.37.96
52.1.32.88
18.208.240.77
44.206.73.232
44.206.73.233
44.206.73.234
44.206.73.235
44.206.73.236
44.206.73.237
44.206.73.238
44.206.73.239
Received IP: 3.234.242.168
I’m assuming this is because of serverless hit coming from a random machine. Am I calling the external API incorrectly which is why we are getting the non-whitelisted IP? or we cannot whitelist the serverless API hits at all because of hits coming randomly?
Thanks in advance!