org.apache.http.conn.HttpHostConnectException

Connection to https://forgeapi.puppetlabs.com refused

Samebug tips9

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web816

  • via JIRA by Ryan Coleman, 1 year ago
    Connection to https://forgeapi.puppetlabs.com refused
  • via JIRA by Ryan Coleman, 1 year ago
    Connection to https://forgeapi.puppetlabs.com refused
  • via JIRA by Ken kato, 1 year ago
    Connection to https://forgeapi.puppetlabs.com refused
  • Stack trace

    • org.apache.http.conn.HttpHostConnectException: Connection to https://forgeapi.puppetlabs.com refused at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158) at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:150) at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:575) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:941) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:919) at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:910) at com.puppetlabs.geppetto.forge.client.ForgeHttpClient.executeRequest(ForgeHttpClient.java:220) at com.puppetlabs.geppetto.forge.client.ForgeHttpClient.doGet(ForgeHttpClient.java:193) at com.puppetlabs.geppetto.forge.client.ForgeHttpClient.get(ForgeHttpClient.java:244) at com.puppetlabs.geppetto.forge.v3.impl.AbstractForgeService.list(AbstractForgeService.java:131) at com.puppetlabs.geppetto.forge.v3.impl.AbstractForgeService.listAll(AbstractForgeService.java:139) at com.puppetlabs.geppetto.ui.wizard.NewPuppetProjectFromForgeWizard$PuppetProjectFromForgeCreationPage$3$1.run(NewPuppetProjectFromForgeWizard.java:161) Caused by: java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.security.ssl.SSLSocketImpl.connect(Unknown Source) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:375) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148) ... 14 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 2 years ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Once, 1 month ago
    Unknown user
    Once, 1 year ago
    984 more bugmates