title: Why is one file creating an App Script error?
body: <p>Can you help me understand why the script isn't working for the double double odds? Here is the place that I am trying to get the information from:</p>
  <p><a href="https://sportsbook.draftkings.com/leagues/basketball/88670846?category=player-props&amp;subcategory=double-double" rel="nofollow noreferrer">https://sportsbook.draftkings.com/leagues/basketball/88670846?category=player-props&amp;subcategory=double-double</a></p>
  <p>When I change the value in the source, as I did for the others, it gives me an error. I believe it is because, unlike the other prop types, double double is either Yes/No instead of Over/Under. Here is the googlesheet with the script! I need help with the file named Double Double.</p>
  <p><a href="https://docs.google.com/spreadsheets/d/1ecZFvHwrhRC6Vn3gM67cTjYKmqOslarln-91aLeURJ4/edit?usp=sharing" rel="nofollow noreferrer">https://docs.google.com/spreadsheets/d/1ecZFvHwrhRC6Vn3gM67cTjYKmqOslarln-91aLeURJ4/edit?usp=sharing</a></p>
  <p>Here is the code written but I am getting an error:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>function SPORTBOOK_DD() {
    const ss = SpreadsheetApp.getActiveSpreadsheet();
    const sheet = ss.getSheetByName('DD');
    const url = `https://sportsbook.draftkings.com//sites/US-SB/api/v4/eventgroups/88670846/categories/583/subcategories/7136?format=json`
  
    const response = UrlFetchApp.fetch(url);
    const rawData = JSON.parse(response.getContentText());
    const events = rawData.eventGroup.events;
    const offerCatergories = rawData.eventGroup.offerCategories;
    const playerProps = offerCatergories.filter(offer =&gt; offer.offerCategoryId == 583)[0];
    const pointsByEvent = playerProps.offerSubcategoryDescriptors.filter(sub =&gt; sub.subcategoryId == 7136)[0].offerSubcategory.offers;
  
    const output = [];
  
    pointsByEvent.forEach((eventPoint, i) =&gt; {
      const { name, startDate, teamName1, teamName2 } = events[i];
      eventPoint.forEach((point, j) =&gt; {
        const outcome = point.outcomes;
        const object = {
          Event: name,
          Startdate: startDate,
          Team1: teamName1,
          Team2: teamName2,
          Player: outcome[0].participant,
          Over_American: outcome[0].oddsAmerican,
          Over_Decimal: outcome[0].oddsDecimal,
          Over_Fractional: outcome[0].oddsFractional,
          Over_Line: outcome[0].line,
          Under_American: outcome[1].oddsAmerican,
          Under_Decimal: outcome[1].oddsDecimal,
          Under_Fractional: outcome[1].oddsFractional,
          Under_Line: outcome[1].line
        }
  
        if (i == 0 &amp;&amp; j == 0) {
          output.push(Object.keys(object));
        };
  
        output.push(Object.values(object));
      });
    });
  
    sheet.getDataRange().clearContent();
    sheet.getRange(1, 1, output.length, output[0].length).setValues(output);
  
  }</code></pre>
  </div>
  </div>
  </p>