Hi Folks,
I am trying to access the file stored in s3 bucket in Thingworx via the AWS signature authentication. But I am unable to access the file. I tried to pass the AWS signature in the Header in below format:
let header = {
"Authorization": {
"AccessKey": + accessKey,
"SecretKey": + secretKey
}
};
let params = {
proxyScheme: undefined /* STRING {"defaultValue":"http"} */,
headers: header,
ignoreSSLErrors: undefined /* BOOLEAN */,
useNTLM: undefined /* BOOLEAN {"defaultValue":false} */,
workstation: undefined /* STRING {"defaultValue":""} */,
useProxy: undefined /* BOOLEAN {"defaultValue":false} */,
proxyHost: undefined /* STRING {"defaultValue":""} */,
timeout: undefined /* NUMBER {"defaultValue":60} */,
proxyPort: undefined /* INTEGER {"defaultValue":8080} */,
password: undefined /* STRING */,
domain: undefined /* STRING {"defaultValue":""} */,
username: undefined /* STRING */
};
// result: IMAGE
let result = Resources["ContentLoaderFunctions"].LoadImage(params);
I am getting the below error: :JSON does not allow non-finite numbers.
Can somebody tell me what is wrong in my request or how to pass the AWS signature while making a REST call?
Thanks in advance.