<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Connection timeout when downloading file in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Connection-timeout-when-downloading-file/m-p/52651#M1608</link>
    <description>&lt;P&gt;To use the Dropbox Core API, you need to be able to make HTTPS connections to (depending on which &lt;A href="https://www.dropbox.com/developers/core/docs" rel="nofollow noreferrer"&gt;API calls&lt;/A&gt; you're making):&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;api.dropbox.com&lt;/LI&gt;
&lt;LI&gt;api-content.dropbox.com&lt;/LI&gt;
&lt;LI&gt;api-notify.dropbox.com&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For downloading files in particular, the relevant one is api-content.dropbox.com .&lt;/P&gt;

&lt;P&gt;Are you able to access that from the server? (E.g., try using curl to access it directly.)&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2015 05:52:27 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-07-13T05:52:27Z</dc:date>
    <item>
      <title>Connection timeout when downloading file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Connection-timeout-when-downloading-file/m-p/52650#M1607</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;

&lt;P&gt;I got the &lt;CODE&gt;SocketTimeoutException&lt;/CODE&gt; while I am trying to get file from dropbox account:&lt;BR /&gt;
The code works normally on my local PC, but throws exception on hosting company's server&lt;BR /&gt;
Do I need to do any firewall configure before I can download file from core API?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;com.dropbox.core.DbxException$NetworkIO: java.net.SocketTimeoutException: connect timed out
    at com.dropbox.core.DbxRequestUtil.startGet(DbxRequestUtil.java:119)
    at com.dropbox.core.DbxClient.startGetSomething(DbxClient.java:403)
    at com.dropbox.core.DbxClient.startGetFile(DbxClient.java:391)
    at com.dropbox.core.DbxClient.getFile(DbxClient.java:345)
    at hk.org.ha.pbrc.dashboard.servlet.PmiMeasureServlet.toString(PmiMeasureServlet.java:75)
    at hk.org.ha.pbrc.dashboard.servlet.MeasurementServlet.doGet(MeasurementServlet.java:27)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:503)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.protocol.https.HttpsClient.&amp;lt;init&amp;gt;(HttpsClient.java:275)
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:975)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
    at com.dropbox.core.http.StandardHttpRequestor.doGet(StandardHttpRequestor.java:82)
    at com.dropbox.core.DbxRequestUtil.startGet(DbxRequestUtil.java:116)
    ... 27 more
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance&lt;BR /&gt;
Leo&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:41:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Connection-timeout-when-downloading-file/m-p/52650#M1607</guid>
      <dc:creator>Leo C.6</dc:creator>
      <dc:date>2019-05-29T09:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Connection timeout when downloading file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Connection-timeout-when-downloading-file/m-p/52651#M1608</link>
      <description>&lt;P&gt;To use the Dropbox Core API, you need to be able to make HTTPS connections to (depending on which &lt;A href="https://www.dropbox.com/developers/core/docs" rel="nofollow noreferrer"&gt;API calls&lt;/A&gt; you're making):&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;api.dropbox.com&lt;/LI&gt;
&lt;LI&gt;api-content.dropbox.com&lt;/LI&gt;
&lt;LI&gt;api-notify.dropbox.com&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;For downloading files in particular, the relevant one is api-content.dropbox.com .&lt;/P&gt;

&lt;P&gt;Are you able to access that from the server? (E.g., try using curl to access it directly.)&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 05:52:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Connection-timeout-when-downloading-file/m-p/52651#M1608</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-07-13T05:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Connection timeout when downloading file</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Connection-timeout-when-downloading-file/m-p/52652#M1609</link>
      <description>&lt;P&gt;Thx, It seems that the hosting company has problem to connect api.dropbox.com&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2015 09:14:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Connection-timeout-when-downloading-file/m-p/52652#M1609</guid>
      <dc:creator>Leo C.6</dc:creator>
      <dc:date>2015-07-13T09:14:39Z</dc:date>
    </item>
  </channel>
</rss>

