[core-http] node-fetch takes above 2 seconds to send the request on some environments #15935
Labels
Azure.Core
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
While we stopped using node-fetch on core-rest-pipeline, core-http does use it. Node fetch takes above 2 seconds to begin sending network requests in some environments. We’re able to reproduce this issue in Kubernetes pods, but it could be present elsewhere.
It is possible to test this by running the following code on a Kubernetes pod (asume the latest versions of the dependencies):
The code above won’t reach to the IMDS MSI endpoint before two seconds, causing the pipeline to abort the request.
nock
here is used to log the responses. We have another issue which makes it hard to debug network requests: #15936For the case of Identity, we should be able to solve this as soon as we move Identity to core-rest-pipeline: #15595 We’re planning to do this during July. However, that won’t solve the issue in core-http.
The text was updated successfully, but these errors were encountered: