title: Why do I get a UserCodeSyntaxError when I have no syntax error in my code?
body: <p>I'm currently creating a Dialogflow chatbot in nodejs and upon deploying my code I get an error message. I've attempted to uncomment most things out to just be left with the base functioning code and I am still unable to get it working. I'm not exactly sure what the issue is here </p>
  
  <pre><code>'use strict';
    import {getAPIresponse} from "./api/index.js";
  
  // const http = require('https');
  
  // const respond = fulfillmentText =&gt; {
  //   return {
  //     statusCode: 200,
  //     body: JSON.stringify({
  //       fulfillmentText
  //     }),
  //     headers: {
  //       "Content-Type": "application/json"
  //     }
  //   }
  //
  // };
  
  module.exports.dining = async (event,context) =&gt; {
  
  
      const incoming= JSON.parse(event.body).queryResult;
  
      console.log(`INCOMING: ${incoming.parameters.hall}`);
  
      const {
        displayName
      } = incoming.intent;
  
      console.log(displayName);
  
  
      //const menu = getAPIresponse('https://esb.prod.uds.harvard.edu/api/dining/2.0/','events?locationId=36');
      //console.log(menu);
      // if(displayName === 'dining'){
      //   if(incoming.parameters.meal === 'breakfast'){
      //     //get's dining hall code to include in API request
      //     const hall = getCode(incoming.parameters.hall);
      //     //generate response from API based off of parameters passed by user
      //     const menu = getAPIresponse("https://esb.prod.uds.harvard.edu/api/dining/2.0/","events?locationId=${hall}", hall);
      //     console.log(menu);
      //   }
      //   if(incoming.parameters.meal === 'lunch'){
      //     //get's dining hall code to include in API request
      //     const hall = getCode(incoming.parameters.hall);
      //     //generate response from API based off of parameters passed by user
      //     const menu = getAPIresponse("https://esb.prod.uds.harvard.edu/api/dining/2.0","/events", hall);
      //   }
      //   if(incoming.parameters.meal === 'dinner'){
      //     //get's dining hall code to include in API request
      //     const hall = getCode(incoming.parameters.hall);
      //     //generate response from API based off of parameters passed by user
      //     const menu = getAPIresponse("https://esb.prod.uds.harvard.edu/api/dining/2.0","/events", hall);
      //   }
      // }
  };
  
  </code></pre>
  
  <p>Almost everything is commented out and I still get the error message that reads </p>
  
  <pre><code>2019-07-02 16:31:33.351 (-04:00)        undefined       ERROR   Uncaught Exception  {
  "errorType":"Runtime.UserCodeSyntaxError","errorMessage":"SyntaxError: Unexpected tok
  en {","stack":["Runtime.UserCodeSyntaxError: SyntaxError: Unexpected token {","    at
   _loadUserApp (/var/runtime/UserFunction.js:98:13)","    at Object.module.exports.loa
  d (/var/runtime/UserFunction.js:140:17)","    at Object.&lt;anonymous&gt; (/var/runtime/ind
  ex.js:36:30)","    at Module._compile (internal/modules/cjs/loader.js:701:30)","    a
  t Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)","    at Modu
  le.load (internal/modules/cjs/loader.js:600:32)","    at tryModuleLoad (internal/modu
  les/cjs/loader.js:539:12)","    at Function.Module._load (internal/modules/cjs/loader
  .js:531:3)","    at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)",
  "    at startup (internal/bootstrap/node.js:283:19)"]}
  </code></pre>