Discussions
Getting error while getting exchange rate from this Api https://apikijangportal.bnm.gov.my/openapi
Hello, I am trying to post the currency exchange rates fetched from an API to Netsuite via the CSV file updation process, while I run the script using the API it gives me the following error, however, if I pass the response that API hard-coded, the rates are being updated fine. I have tried all the solutions but nothing seems to work as the NetSuite doesn't accept the API version.
{
type: "error.SuiteScriptError",
name: "SSS_INVALID_HOST_CERT",
message: "An untrusted, unsupported, or invalid certificate was found for this host.",
id: "",
stack: [
"Error\n at Object.execute (/SuiteScripts/_update_exchange_rate_ss.js:18:38)"