Open mattcobley opened 1 month ago
Alright, I think I snuck this into my latest PR, for better or worse. It implements PublishBatch, and it'll be in the next release so look out for v0.5.1, and that'll be soon.
All I really learned was the MessageAttributes are an absolute mess and I need to redo it. So I'll need you to check your flow once deployed? If it's still no good, I'll put this on my short list to figure out.
@mattcobley v0.5.1 is out! Let me know if that worked for you or if you're still having issues when you can!
Hi,
Getting a socket hang up error when trying to publish an SNS message that contains MessageAttributes using the
@aws-sdk/client-sns
package, version3.485.0
.The error is:
This is essentially the code that we're using and it works with the real AWS SNS:
What I did notice is this definition here (https://github.com/Admiral-Piett/goaws/blob/master/app/sns.go#L7) in your codebase that specifies
Type
andValue
instead ofDataType
andStringValue
, and if I change my code to setType
andValue
in theMessageAttributes
then it works as expected, but of course these are not the current property names to use (https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sns/Interface/MessageAttributeValue/).I did also notice this TODO in the codebase where in another location we've got
DataType
andStringValue
etc. again: https://github.com/Admiral-Piett/goaws/blob/master/app/models/models.go#L27