Copy link to clipboard
Copied
I'm getting errors using some of the sample code (after adjusting for typos): https://helpx.adobe.com/coldfusion/using/integrate-coldfusion-amazon-sns.html
<cfscript>
//'archinet_aws_user_1' and 'snsConf' are aliases configured in the CFAdmin panel
// define the credential and the configuration aliases in the ColdFusion Admin
sns=getCloudService("archinet_aws_user_1","snsConf");
// code below.
</cfscript>
Throws this error:
"The httpClient and the httpClientBuilder can't both be configured."
Any one else encounter this?
Copy link to clipboard
Copied
If the aliases (string arguments) don't work, then try using the credential and config defined in Application.cfc (struct arguments).
Copy link to clipboard
Copied
Thanks for responding. I didn't post it, but no matter what variation I try to do it it still fails with the same error.
For example:
<cfscript>
snsCred={
"vendorName":"AWS",
"alias": "snsCredAlias",
"region":"us-east-1",
"accessKeyId": "xxxxxxxxxxxxxxxxxxxx",
"secretAccessKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
snsConf = {
"alias":"snsConfAlias",
"serviceName" : "SNS",
"clientOverrideConfig":{
"retryPolicy":{
"numRetries":4
}
},
"httpClientConfig":{
"maxConnections":50
}
}
try{
snsObj = getCloudService(snsCred, snsConf);
}
catch(any excpt){
writeDump(var="#excpt#", format="html", abort="true");
//Throws: The httpClient and the httpClientBuilder can't both be configured.
}
</cfscript>
Copy link to clipboard
Copied
How do I file this as bug?
Copy link to clipboard
Copied
How do I file this as bug?
By @TwoEdge
Copy link to clipboard
Copied
This is a bug. We had the same issue and raised it with Adobe.
Seems SNS doesnt work at all out of the box.
https://tracker.adobe.com/#/view/CF-4211954
Copy link to clipboard
Copied
Glad to have a confirmation on that one!
Copy link to clipboard
Copied
The ticket says that Adobe has fixed it. If this is urgent to you, request a hot fix from them: cfinstal|at|adobe.com