-
Hi dear author, I am trying your solution. However, I still get the same error Message Here is my sqs client configuration
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @jktan0504, thanks for trying out the library! In your initiation, it looks like you set the message threshold to 2 GB ( If you remove that line (configuring the message threshold to 2 GB), the default message size threshold is set to the maximum possible (256 KiB). That should result in sending your messages as expected. |
Beta Was this translation helpful? Give feedback.
Hey @jktan0504, thanks for trying out the library! In your initiation, it looks like you set the message threshold to 2 GB (
sqsextendedclient.WithMessageSizeThreshold(2097152)
). Unfortunately, AWS has a hard limit and will only accept messages up to 256 KiB (look under the Message Size section). They accept payloads up to 2 GB (so you can batch together multiple 256 KiB messages in aSendMessageBatch
call), however it is currently impossible for any single message to exceed 256 KiB.If you remove that line (configuring the message threshold to 2 GB), the default message size threshold is set to the maximum possible (256 KiB). That should result in sending your messages as expected.