I have a function that queries the Log Analytics Batch endpoint (https://api.loganalytics.io/v1/$batch) ~450 times a day, out of which ~60 requests return a 502 Bad Gateway.
It is always the same query and it usually returns around 100 rows total in less than 15 seconds, so it is nowhere near the API limits:
- Queries cannot return more than 500,000 rows
- Queries cannot return more than 64,000,000 bytes (~61 MiB total data)
- Queries cannot run longer than 10 minutes (by default 3 minutes)
This is the error description from the documentation:
Bad Gateway. A downstream service dependency experienced an internal service error while processing the request
Does anyone knows what this mean or what can I do to avoid it?