azure-sdk-for-go: Some services DELETE APIs cannot be called with GenericClient BeginDelete
Bug Report
package: https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/resourcemanager/resources/armresources/zz_generated_client.go
sdk version: master/latest
I am using GenericClient BeginDelete to issue deletes for a bunch of resources including Event Hub Consumer Groups.
I have noticed though that I get a JSON deserialization error when deleting Event Hub Consumer groups. The actual error is
json: cannot unmarshal string into Go value of type ClientDeleteResponse
The reason for this error is that this API seems to return the string literal "". If you look at the implementation of the type-specific SDK, it never attempts to deserialize the response see here.
It feels like the async workflow + poller should be hardened for this case and allow me to successfully delete things via the async pattern?
Note that, this works for almost every resource I tried it for, so in some ways this could be an issue with eventhubs API, since what they are doing seems very strangeā¦
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (9 by maintainers)
@tadelesh , thanks for reaching out. Our team would investigate, and I would share updates soon.