I want to read a csv file and send the data to a google spreadsheet. I am following the given link https://ai2.metricrat.co.uk/guides/export-csv-data-multiple-data-to-google-sheet
But I am getting the error as shown in the image.

My app script code is as follows
function doPost(e) {
var data = JSON.parse(e.postData.contents) ; // or >> eval(e.postData.contents) ;
var ss = SpreadsheetApp.getActive();
var sh = ss.getSheetByName('Sheet1');
for (var i=0;i<data.length;i++) {
sh.appendRow(data[i]);
}
return ContentService.createTextOutput("Success") ;
}
