<?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 exceljs - Execution Crashed error in AppEngine's AppFunction in Developer Q&amp;A Forum</title>
    <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/exceljs-Execution-Crashed-error-in-AppEngine-s-AppFunction/m-p/212015#M333</link>
    <description>&lt;P&gt;exceljs (&lt;A title="exceljs github" href="https://github.com/exceljs/exceljs" target="_self"&gt;https://github.com/exceljs/exceljs&lt;/A&gt;) is working fine in local development app function (creating workbook, adding/editing worksheet, export as buffer).&lt;/P&gt;&lt;P&gt;When it is deployed, and this app function api is called from workflow, the following error message returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"error":{"code":540,"message":"Execution crashed","details":{"logs":"","type":"UNCAUGHT_EXCEPTION","message":"Uncaught error"}}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Created a separate app function to isolate and test the exceljs library, the &lt;U&gt;similar error message&lt;/U&gt; returned as above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code block for reference:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import ExcelJS from "exceljs";
 
const workbook = new ExcelJS.Workbook();
 
export default async function (payload: unknown = undefined) {
  return "Hello world";
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the possible cause for the crashing message above? which it works well in local development but not in production.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 12 May 2023 08:15:05 GMT</pubDate>
    <dc:creator>william_cher</dc:creator>
    <dc:date>2023-05-12T08:15:05Z</dc:date>
    <item>
      <title>exceljs - Execution Crashed error in AppEngine's AppFunction</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/exceljs-Execution-Crashed-error-in-AppEngine-s-AppFunction/m-p/212015#M333</link>
      <description>&lt;P&gt;exceljs (&lt;A title="exceljs github" href="https://github.com/exceljs/exceljs" target="_self"&gt;https://github.com/exceljs/exceljs&lt;/A&gt;) is working fine in local development app function (creating workbook, adding/editing worksheet, export as buffer).&lt;/P&gt;&lt;P&gt;When it is deployed, and this app function api is called from workflow, the following error message returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{"error":{"code":540,"message":"Execution crashed","details":{"logs":"","type":"UNCAUGHT_EXCEPTION","message":"Uncaught error"}}}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Created a separate app function to isolate and test the exceljs library, the &lt;U&gt;similar error message&lt;/U&gt; returned as above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Code block for reference:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;import ExcelJS from "exceljs";
 
const workbook = new ExcelJS.Workbook();
 
export default async function (payload: unknown = undefined) {
  return "Hello world";
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the possible cause for the crashing message above? which it works well in local development but not in production.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 08:15:05 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/exceljs-Execution-Crashed-error-in-AppEngine-s-AppFunction/m-p/212015#M333</guid>
      <dc:creator>william_cher</dc:creator>
      <dc:date>2023-05-12T08:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: exceljs - Execution Crashed error in AppEngine's AppFunction</title>
      <link>https://community.dynatrace.com/t5/Developer-Q-A-Forum/exceljs-Execution-Crashed-error-in-AppEngine-s-AppFunction/m-p/212029#M335</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/62755"&gt;@william_cher&lt;/a&gt;, app functions can't have any node dependencies. Once deployed, they run in the Dynatrace JavaScript runtime, which has limited access to only a few APIs. You can read more about it in the &lt;A href="https://developer.dynatrace.com/reference/javascript-runtime/" target="_self"&gt;developer portal&lt;/A&gt;. You can still use such dependencies in your app's React frontend though.&lt;/P&gt;
&lt;P&gt;Feel free to also read more about app functions' &lt;A href="https://developer.dynatrace.com/develop/functions/#use-cases" target="_self"&gt;use cases&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 10:18:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Developer-Q-A-Forum/exceljs-Execution-Crashed-error-in-AppEngine-s-AppFunction/m-p/212029#M335</guid>
      <dc:creator>educampver</dc:creator>
      <dc:date>2023-05-12T10:18:25Z</dc:date>
    </item>
  </channel>
</rss>

