Closed MarvinWenS closed 4 months ago
Hi, @MarvinWenS
If you got the response Cancel operation is not allowed when the ProvisioningState is Canceled
, it means that the last long operation was successfully aborted as expected. The service had processed your first request, but didn't produce the response correctly, so it came to 502 Bad GateWay
error.
Usually the response would be in 204 status with no content returned. Please retry the method and if this error code keeping reported, please give us feedback and provide more details on the reproduction steps.
Link to sample
https://learn.microsoft.com/zh-cn/rest/api/aks/managed-clusters/abort-latest-operation?tabs=HTTP
Library name and version
azure-mgmt-containerservice 26.0.0
Language of the Sample
Sample Issue Type
Issue details
Hi team, Why it is report me 502 Bad GateWay error, while I use agent pool and manager cluster begin_abort_latest_operation method? When I request using the rest API, when it is an update, the error code reported to me for the first request. If I request again, he will report me that the current status is' cancel 'and' operation not allowed '. Python SDK request code:
API request details: POST: /subscriptions/af8a838e-eb6b-4a7a-974e-36128b1ea4b7/resourceGroups/cqfybg6fef-sapsecxco2-d7/providers/Microsoft.ContainerService/managedclusters/cqfybg6fef-sapsecxco2-d7-kub/abort?api-version=2023-07-01 POST: /subscriptions/af8a838e-eb6b-4a7a-974e-36128b1ea4b7/resourceGroups/cqfybg6fef-sapsecxco2-d7/providers/Microsoft.ContainerService/managedClusters/cqfybg6fef-sapsecxco2-d7-kub/agentPools/shrvsbzqv9/abort?api-version=2021-09-01 BR Marvin,Wen
Expected behavior
No response
Actual behavior
No response
Reproduction Steps
No response
Environment
No response