Proxy settings do not work when downloading version 3.5.5
See original GitHub issueI’m unable to get version 3.5.x to download with my proxy configuration. I have created Mongodb Cofiguration beans in test class as follows:
@Bean
public MongodStarter mongodStarter() {
IRuntimeConfig runtimeConfig = new RuntimeConfigBuilder()
.defaults(Command.MongoD)
.artifactStore(new ExtractedArtifactStoreBuilder()
.defaults(Command.MongoD)
.download(new DownloadConfigBuilder()
.defaultsForCommand(Command.MongoD)
.proxyFactory(new HttpProxyFactory("proxy address", portNumber))))
.build();
return MongodStarter.getInstance(runtimeConfig);
}
@Bean
public MongoClient mongoClient() {
return new MongoClient("localhost", 12345);
}
@Bean
public MongoDbFactory mongoDbFactory() throws IOException {
if (mongodExecutable == null) {
log.info("trying to start local mock mongodb...");
mongodExecutable = mongodStarter().prepare(
new MongodConfigBuilder()
.version(Versions.withFeatures(new GenericVersion("4.0.7"), Feature.SYNC_DELAY, Feature.NO_HTTP_INTERFACE_ARG, Feature.ONLY_WITH_SSL))
.net(new Net("localhost", 12345, Network.localhostIsIPv6())).build());
mongodProcess = mongodExecutable.start();
}
return new SimpleMongoDbFactory(mongoClient(), "contracts");
}
@Bean
public MongoTemplate mongoTemplate(MongoDbFactory mongoDbFactory) {
return new MongoTemplate(mongoDbFactory);
}
And successfully downloaded 4.0.7 version via proxy settings but also Flapdoodle trying to install version 3.5.x so failed to load ApplicationContext.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (3 by maintainers)
Top Results From Across the Web
windows updates wont download - Microsoft Community
my pc says "you have 36 updates ready to be installed click here to install them " so i click and puch start...
Read more >How to Fix Windows could not automatically detect ... - YouTube
... video shows how to fix the "Windows could not automatically detect this network's proxy settings ... Your browser can 't play this...
Read more >How to Fix Windows could not detect this network's proxy ...
In this video, we're going to show you how to fix Windows could not detect this network's proxy settings ▻ Check article with...
Read more >How to fix "There is something wrong with the proxy server ...
Method 3: Checking your Proxy Settings · On your keyboard, press Windows Key+S. · Type “control panel” (no quotes), then hit Enter. ·...
Read more >How can I configure proxy settings for all apps, system, IE etc?
The proxy settings for WinHTTP are not the proxy settings for Microsoft Internet Explorer. You cannot configure the proxy settings for WinHTTP in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
And why also Flapdoodle trying to additionally install version 3.5.5, even in configuration specified only version 4.x? It downloads two archives: mongodb-win32-x86_64-2008plus-ssl-4.0.12.zip (we can configure download url for it through DownloadConfigBuilder) and mongodb-win32-x86_64-3.5.5.zip (and we can’t configure download url for it!) @Loki-Afro Can you explain this behavior?
+1