[BUG] Requests being retried unnecessarily due to IllegalArgumentException
caused in Azure Core's ByteBufferCollector
#24596
Labels
Azure.Core
azure-core
Describe the bug
Recently, when recording tests that send POST requests, an error will pop up in the logs with the following message:
The logs show the request was successfully sent that and a successful response was received, however, this error makes clients retry sending the original request, which can lead to
409 Conflict
errors for create operations, for example.Exception or Stack Trace
Here are sample logs obtained by calling the
TableClient.createEntity(TableEntity)
operation:To Reproduce
I found out about this by calling a
createEntity()
operation inTableClient
, however, I've seen this happen in Key Vault as well.Code Snippet
Here's the code that can be used to reproduce with Tables:
Expected behavior
Requests shouldn't be retried due to an
IllegalArgumentException
inByteBufferCollection
.Setup (please complete the following information):
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: