-
Notifications
You must be signed in to change notification settings - Fork 266
Closed
Labels
Description
Hi there!
I have encountered a problem with the non-obvious behaviour of the SendEach
method. For now, it stops sending the batch and returns an error, if an invalid message presents in batch. So I cannot correctly process the result of the method on my side.
Test case:
- prepare slice of 500 messages. the one in the middle is invalid (e.g. the token is empty)
- call method
SendEach
with that slice
Expected result: method will return BatchResponse
with filled counters (like SuccessCount
=499 and FailureCount
=1)
Actual result: method returning error and skips sending of the rest messages.
Or is this an intentional behavior?