Azure / azure-rest-api-specs

The source for REST API specifications for Microsoft Azure.
MIT License
2.67k stars 5.1k forks source link

[BUG] Chaos Target Type List API times out #30673

Open neil-yechenwei opened 1 month ago

neil-yechenwei commented 1 month ago

API Spec link

https://github.com/Azure/azure-rest-api-specs/blob/abb0052f400b0215d4fbbf479e5bbc54714199e0/specification/chaos/resource-manager/Microsoft.Chaos/stable/2023-11-01/targetTypes.json#L43

API Spec version

2023-11-01

Describe the bug

Hi team,

Recently we noticed that Chaos Target Type List API would time out. Could you take a look? Thanks.

Request payload:

GET https://management.azure.com/subscriptions/xx-xx-xx-xx/providers/Microsoft.Chaos/locations/westeurope/targetTypes

Error message:

loading results: Get "": context deadline exceeded

Expected behavior

Chaos Target Type List API should execute successfully.

Actual behavior

Chaos Target Type List API would time out

Reproduction Steps

Invoke below api:

GET https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.Chaos/locations/westeurope/targetTypes

Environment

PROD

v-jiaodi commented 1 month ago

@MasterRyd3l Please help take a look, thanks.

MasterRyd3l commented 1 month ago

I am not able to reproduce this. Can I get a timestamp for this call is made so I can try to find the logs?

MasterRyd3l commented 1 month ago

btw, ARM apis need to have the api-version url parameter set. I don't see it set in this case.

MasterRyd3l commented 1 month ago

I can see from our logs that the endpoint isn't being called with api-version. see screenshot

image

the two bottom one is mine. the top 4 are around 9/23 and 9/25. both of them failed with a 400 error within 10ms.