<?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 Dropbox API Response Body warning in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/320549#M18895</link>
    <description>&lt;P&gt;I am using DropBox API. I see the following warning occasionally and would like to know if this can be got rid of. How to find out which call is causing this warning to be thrown.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A connection to &lt;A href="https://api.dropboxapi.com/" target="_blank"&gt;https://api.dropboxapi.com/&lt;/A&gt; was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:08:36 GMT</pubDate>
    <dc:creator>AS13</dc:creator>
    <dc:date>2019-05-29T09:08:36Z</dc:date>
    <item>
      <title>Dropbox API Response Body warning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/320549#M18895</link>
      <description>&lt;P&gt;I am using DropBox API. I see the following warning occasionally and would like to know if this can be got rid of. How to find out which call is causing this warning to be thrown.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A connection to &lt;A href="https://api.dropboxapi.com/" target="_blank"&gt;https://api.dropboxapi.com/&lt;/A&gt; was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:08:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/320549#M18895</guid>
      <dc:creator>AS13</dc:creator>
      <dc:date>2019-05-29T09:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Response Body warning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/320619#M18896</link>
      <description>&lt;P&gt;First, to clarify, are you using the official&amp;nbsp;Dropbox Java SDK? If so, please let me know what version number you have installed.&lt;/P&gt;
&lt;P&gt;Anyway, did you try enabling the finer-grained logging that the message recommended? Please try that and share the output.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 21:39:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/320619#M18896</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2018-12-31T21:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Response Body warning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/321166#M18912</link>
      <description>&lt;P&gt;Yes, I am using the official Dropbox Java SDK ? Version number is 3.0.9.&lt;BR /&gt;Okhttp3 Processor library version is 3.12.*.&lt;BR /&gt;&lt;BR /&gt;I did add the following lines&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;logger name="okhttp3"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;level value="debug" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/logger&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;logger name="okhttp3.OkHttpClient"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;level value="debug" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/logger&amp;gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, I implemented the okhttp3.Interceptor interface, but no luck.&lt;BR /&gt;I get the requests / responses logged in the file, but still warning shows up once in a while -&lt;BR /&gt;say when I simulate 100 (webhook) requests or so at once.&lt;BR /&gt;&lt;BR /&gt;Any other idea to track / debug / resolve ?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 15:17:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/321166#M18912</guid>
      <dc:creator>AS13</dc:creator>
      <dc:date>2019-01-03T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Response Body warning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/321168#M18913</link>
      <description>&lt;P&gt;Also, would like to add that, the only place where theOkhttp3Requestor is used is :&lt;/P&gt;&lt;P&gt;OkHttpClient httpClient = OkHttp3Requestor.defaultOkHttpClientBuilder()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;.addInterceptor(new CustomLoggingInterceptor())&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .readTimeout(5, TimeUnit.MINUTES)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;.build();&lt;BR /&gt;OkHttp3Requestor requestor = new OkHttp3Requestor(httpClient);&lt;BR /&gt;DbxRequestConfig config = DbxRequestConfig.newBuilder(CONFIG).withHttpRequestor(requestor).build();&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 15:20:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/321168#M18913</guid>
      <dc:creator>AS13</dc:creator>
      <dc:date>2019-01-03T15:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Response Body warning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/321198#M18916</link>
      <description>&lt;P&gt;Apologies, I'm not sure I follow. The OkHttp output mentioned using "setLevel(Level.FINE)" in particular to help track this down. I don't see where you set that. Were you able to use that?&lt;/P&gt;
&lt;P&gt;Otherwise, if you can share the whatever code is running around when you do see these, we can try to reproduce it to track it down on our side.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 17:41:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/321198#M18916</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-01-03T17:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Response Body warning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/327311#M19172</link>
      <description>&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;Sorry for the delayed response.&lt;/P&gt;&lt;P&gt;We use&amp;nbsp;Dropbox API&amp;nbsp;to track&amp;nbsp;the files uploaded by user to a shared Dropbox account. The uploaded files are checked&amp;nbsp;before being&amp;nbsp;accepted for further processing. If these files do not comply with data quality checks, they are deleted programmatically ( in a thread ).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Once in a while the following warning is shown :&lt;/P&gt;&lt;P&gt;&lt;EM&gt;A connection to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://api.dropboxapi.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.dropboxapi.com/&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;When&amp;nbsp;the warning level is set to FINEST, the stack trace is :&lt;/P&gt;&lt;PRE&gt;14:01:22,522 WARNING [okhttp3.OkHttpClient] (OkHttp ConnectionPool) A connection to https://api.dropboxapi.com/ was leaked. Did you forget to close a response body?: java.lang.Throwable: response.body().close()
	at okhttp3.internal.platform.Platform.getStackTraceForCloseable(Platform.java:148)
	at okhttp3.RealCall.captureCallStackTrace(RealCall.java:89)
	at okhttp3.RealCall.execute(RealCall.java:73)
	at com.dropbox.core.http.OkHttp3Requestor$BufferedUploader.finish(OkHttp3Requestor.java:287)
	at com.dropbox.core.DbxRequestUtil.startPostRaw(DbxRequestUtil.java:259)
	at com.dropbox.core.v2.DbxRawClientV2$1.execute(DbxRawClientV2.java:121)
	at com.dropbox.core.v2.DbxRawClientV2.executeRetriable(DbxRawClientV2.java:300)
	at com.dropbox.core.v2.DbxRawClientV2.rpcStyle(DbxRawClientV2.java:116)
	at com.dropbox.core.v2.files.DbxUserFilesRequests.deleteV2(DbxUserFilesRequests.java:833)
	at com.dropbox.core.v2.files.DbxUserFilesRequests.deleteV2(DbxUserFilesRequests.java:862)
	at xxx.xxx.xxx.xxx.XXXService.process(XXXService.java:199)&lt;/PRE&gt;&lt;P&gt;Line no. 199 of XXXService is :&lt;/P&gt;&lt;PRE&gt;DbxClientV2.files().deleteV2(fileMetadata.getPathDisplay());&lt;/PRE&gt;&lt;P&gt;How to avoid this&amp;nbsp;warning ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 13:48:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/327311#M19172</guid>
      <dc:creator>AS132</dc:creator>
      <dc:date>2019-02-06T13:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dropbox API Response Body warning</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/327375#M19175</link>
      <description>&lt;P&gt;Thanks! That stack is helpful. This looks like something that would need to be addressed in the&amp;nbsp;Dropbox SDK itself. We'll look into it.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:35:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Dropbox-API-Response-Body-warning/m-p/327375#M19175</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-02-06T16:35:55Z</dc:date>
    </item>
  </channel>
</rss>

