question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Proxy settings do not work when downloading version 3.5.5

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
SvSergeycommented, Sep 3, 2019

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?

1reaction
rsercanocommented, Mar 29, 2019

+1

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found