JS SDK: "Resolving dependencies with Coursier" timeout in corporate network with proxy

Getting the below error while doing this step “Resolving dependencies with Coursier”. Few dependencies got downloaded but below ones fail.

Does anyone know where these dependencies are stored in macOS.
Is it possible to manually download and place it in those folder to get the tests running.

Thanks.

‘Resolution error: Error downloading io.gatling:gatling-enterprise-plugin-commons:1.9.6\n’ +
’ not found: /Users//.ivy2/local/io.gatling/gatling-enterprise-plugin-commons/1.9.6/ivys/ivy.xml\n’ +
’ download error: Caught java.net.ConnectException (Operation timed out) while downloading h-t-t-p-s://repo1.maven.org/maven2/io/gatling/gatling-enterprise-plugin-commons/1.9.6/gatling-enterprise-plugin-commons-1.9.6.pom\n’ +
‘Error downloading org.graalvm.polyglot:js-community:24.0.2\n’ +
’ not found: /Users//.ivy2/local/org.graalvm.polyglot/js-community/24.0.2/ivys/ivy.xml\n’ +
’ download error: Caught java.net.ConnectException (Operation timed out) while downloading h-t-t-p-s://repo1.maven.org/maven2/org/graalvm/polyglot/js-community/24.0.2/js-community-24.0.2.pom\n’ +
‘Error downloading io.gatling:gatling-jvm-to-js-adapter:3.12.0\n’ +
’ not found: /Users//.ivy2/local/io.gatling/gatling-jvm-to-js-adapter/3.12.0/ivys/ivy.xml\n’ +
’ download error: Caught java.net.ConnectException (Operation timed out) while downloading h-t-t-p-s://repo1.maven.org/maven2/io/gatling/gatling-jvm-to-js-adapter/3.12.0/gatling-jvm-to-js-adapter-3.12.0.pom\n’ +
‘Error downloading io.gatling.highcharts:gatling-charts-highcharts:3.12.0\n’ +
’ not found: /Users//.ivy2/local/io.gatling.highcharts/gatling-charts-highcharts/3.12.0/ivys/ivy.xml\n’ +
’ download error: Caught java.net.ConnectException (Operation timed out) while downloading h-t-t-p-s://repo1.maven.org/maven2/io/gatling/highcharts/gatling-charts-highcharts/3.12.0/gatling-charts-highcharts-3.12.0.pom\n’

Are you in a corporate network with no direct internet connection?

Or are you using a poor internet connection?

Yes, I’m in a corporate network with vpn and I’m using a proxy to access outside resources.

How do you configure your proxy for npm?

I tried setting it up in the .npmrc file like below.

metrics-registry=https://registry.npmjs.org/
registry=https://registry.npmjs.org/
https-proxy=h-ttp://proxy.domain.com:port
proxy=h-ttp://proxy.domain.com:port

And it didn’t work so I tried the below.
https-proxy=h-ttp://user:password@proxy.domain.com:port
proxy=h-ttp://user:password@proxy.domain.com:port

This is also not working. Could you please help. Thanks

But do you have the correct values, including credentials, for your corporate proxy?

https-proxy=h-ttp://user:password@proxy.domain.com:port
proxy=h-ttp://user:password@proxy.domain.com:port

Is it exactly what you configured, or did you anonymized the values?

Yes, I have the correct values and credentials. This is also being used to access external git (github.com) instead of the github enterprise.
I just used h-ttp to get rid of the error in posting questions here as it does not allow more than 2 hyperlinks.

Do you think this configuration is correct?

We download components from various endpoints:

  • JavaScript libraries downloaded by npm
  • GraalVM downloaded by our internals
  • Java libraries downloaded from maven central by our internals

We’ll investigate on how to make our internals honor npm’s proxy configuration.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.