Sending errors are swallowed #111
saibotsivad
started this conversation in
General / Feature Requests
Replies: 1 comment
-
|
Sorry, I've just seen this, apologies, my notifications are mad sometimes. This is something we can definitely take a look at or would be happy to receive a PR for. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When using the
sendBatchmethod (or thesendwhich usessendBatch), if there is a failure to send, only theIdis kept in the thrownFailedMessagesError:What this means is that the results from calling the
@aws-sdk/client-sqsSDK'ssendmethod are lost.For example, here's the results from sending an invalid message:
But because the
FailedMessagesError.failedMessagesis juststring[]it only includes theIdand theMessageis lost.Would you be willing to update the
FailedMessagesErrorto include the full object fromFailed?To avoid backwards compatibility issues, you could do something like:
Beta Was this translation helpful? Give feedback.
All reactions