Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download of plugins fails when behind proxy #265

Closed
Schmytzi opened this issue Oct 16, 2024 · 2 comments
Closed

Download of plugins fails when behind proxy #265

Schmytzi opened this issue Oct 16, 2024 · 2 comments

Comments

@Schmytzi
Copy link

I am working on a system behind a proxy. Every time I try to run nf-test test, it fails with the following output:

🚀 nf-test 0.9.0
https://www.nf-test.com
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr

Error: Syntax errors in nf-test config file: java.net.ConnectException: Connection refused

This error also occurs with nf-test update-plugins.

This does not appear to be an issue with the nf-test configuration, as the tests run fine elsewhere. It is also possible to circumvent this error by first running the tests on a computer with direct internet access and then copying the the directory .nf-test/plugins to the affected system but this seems more like a dirty hack.

@MarieLataretu
Copy link
Contributor

Hi there, I have the same problem, see #234 !

My workaround was to download the jar files from the plugin repos (wget worked in my case) and add them in the test config (see here), or use --plugin path/to/my/nft-plugin.jar:path/to/my/nft-plugin2.jar

@Schmytzi
Copy link
Author

Has been fixed with PR #264. Now it's enough to run the following before starting nf-test

export NFT_JAVA_ARGS='-Djava.net.useSystemProxies=true'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants