Breaking Change: futures are no longer populating their Result() causing panic on access #14540
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
CodeGen
Issues that relate to code generation
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Bug Report
This is a general approach to the generated SDK, so affects many APIs and versions, if not all that use futures/LROs. The autorest result is no longer being assigned to the future.Response() which means on error, this causes a panic if checked for the response code:
e.g.
When an LRO errors, this value is checked to be able to surface the result / status to the user. Since this is no longer populated, we get a nil panic:
panic: runtime error: invalid memory address or nil pointer dereference
A PR that may fix this is here: Azure/autorest.go#605
The text was updated successfully, but these errors were encountered: