As can be seen from the above debug logs, a timeout occurred when the redirect address, https://cdn.npmmirror.com./ANY, was resolved by DNS where Artifactory sent requests to. After the timeout was complete, the package was downloaded again, resulting in a slow download of this npm package.
- We can use the dig tool to check if DNS can resolve the address correctly.
# Run the dig command to test dig cdn.npmmirror.com./ANY @<dns_ip> # The response of timeout ; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.15 <<>> cdn.npmmirror.com./ANY ;; global options: +cmd ;; connection timed out; no servers could be reached