Sending errors are swallowed #111
saibotsivad
started this conversation in
General / Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When using the
sendBatch
method (or thesend
which usessendBatch
), if there is a failure to send, only theId
is kept in the thrownFailedMessagesError
:What this means is that the results from calling the
@aws-sdk/client-sqs
SDK'ssend
method are lost.For example, here's the results from sending an invalid message:
But because the
FailedMessagesError.failedMessages
is juststring[]
it only includes theId
and theMessage
is lost.Would you be willing to update the
FailedMessagesError
to include the full object fromFailed
?To avoid backwards compatibility issues, you could do something like:
Beta Was this translation helpful? Give feedback.
All reactions