diff --git a/packages/lib/shim-init-node.js b/packages/lib/shim-init-node.js index 04cf74c7e..da827ff83 100644 --- a/packages/lib/shim-init-node.js +++ b/packages/lib/shim-init-node.js @@ -493,7 +493,7 @@ function shimInit(options = null) { }; const resolvedProxyUrl = resolveProxyUrl(proxySettings.proxyUrl); - requestOptions.agent = (resolvedProxyUrl && proxySettings.proxyEnabled) ? shim.proxyAgent(url, resolvedProxyUrl) : null; + requestOptions.agent = (resolvedProxyUrl && proxySettings.proxyEnabled) ? shim.proxyAgent(url.href, resolvedProxyUrl) : null; const doFetchOperation = async () => { return new Promise((resolve, reject) => {