<?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: Adding dropbox library to layer causes lambda timeout in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-dropbox-library-to-layer-causes-lambda-timeout/m-p/691114#M30977</link>
    <description>&lt;P&gt;try to increase lambdas&amp;nbsp;&lt;SPAN&gt;MemorySize ... 512 works for me&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2023 15:18:32 GMT</pubDate>
    <dc:creator>no110</dc:creator>
    <dc:date>2023-06-12T15:18:32Z</dc:date>
    <item>
      <title>Adding dropbox library to layer causes lambda timeout</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-dropbox-library-to-layer-causes-lambda-timeout/m-p/651434#M29765</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm having an issue adding&amp;nbsp;&lt;STRONG&gt;dropbox&lt;/STRONG&gt; to the Python layer I use in my lambda function. The code works fine locally but when I add the library to my layer the lambda just times out. Locally I use Windows 11 and Python 3.9, my lambda is set to use Python 3.9. As I have been troubleshooting, here are some details that might be useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Trying to run the lambda without updating the layer produces an error:&amp;nbsp;&lt;EM&gt;"Unable to import module 'lambda_function': No module named '&lt;STRONG&gt;dropbox&lt;/STRONG&gt;'"&lt;/EM&gt; -&amp;gt; this is expected as the layer doesn't include the library.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pip shows that &lt;STRONG&gt;dropbox&lt;/STRONG&gt; requires&amp;nbsp;&lt;STRONG&gt;requests&lt;/STRONG&gt;, &lt;STRONG&gt;six&lt;/STRONG&gt;, and &lt;STRONG&gt;stone&lt;/STRONG&gt;. Looking at the install log, it also added&amp;nbsp;&lt;STRONG&gt;ply&lt;/STRONG&gt;. &lt;STRONG&gt;Requests&lt;/STRONG&gt; is already in my layer so I only added the &lt;STRONG&gt;dropbox&lt;/STRONG&gt; files. After that, the error thrown is&amp;nbsp;&lt;EM&gt;"Unable to import module 'lambda_function': No module named '&lt;STRONG&gt;stone&lt;/STRONG&gt;'"&lt;/EM&gt;. Again, expected. Here is where the problem manifests itself: when I add the files for &lt;STRONG&gt;stone&lt;/STRONG&gt; to the layer, the lambda times out. No errors, no details, just a timeout.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;dropbox&lt;/STRONG&gt; version: 11.36.0&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;stone&lt;/STRONG&gt; version: 3.3.1&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;requests&lt;/STRONG&gt; version: 2.28.1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas are greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 17:25:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-dropbox-library-to-layer-causes-lambda-timeout/m-p/651434#M29765</guid>
      <dc:creator>pchois</dc:creator>
      <dc:date>2023-01-16T17:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dropbox library to layer causes lambda timeout</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-dropbox-library-to-layer-causes-lambda-timeout/m-p/651754#M29768</link>
      <description>&lt;P&gt;I can't say off hand why that would be timing out, but given that it works locally it does seem like it is related to that lambda environment. I recommend referring to the support resources for the lambda environment to debug this, or to see if you can enable more verbose output at least. Unfortunately as that environment isn't made by Dropbox we can't offer specific technical support for it though. Apologies I can't be of more direct help. If you do find an issue in the Dropbox or Stone library itself of course please let me know and I will raise it with the team to see what we can do about it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 19:08:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-dropbox-library-to-layer-causes-lambda-timeout/m-p/651754#M29768</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-01-17T19:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding dropbox library to layer causes lambda timeout</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-dropbox-library-to-layer-causes-lambda-timeout/m-p/691114#M30977</link>
      <description>&lt;P&gt;try to increase lambdas&amp;nbsp;&lt;SPAN&gt;MemorySize ... 512 works for me&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 15:18:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Adding-dropbox-library-to-layer-causes-lambda-timeout/m-p/691114#M30977</guid>
      <dc:creator>no110</dc:creator>
      <dc:date>2023-06-12T15:18:32Z</dc:date>
    </item>
  </channel>
</rss>

