Posting to a google sheet from a svelte app - says successful but doesn't populate

458 views
Skip to first unread message

Maxene Graze

unread,
Aug 19, 2022, 4:45:58 PM8/19/22
to Google Apps Script Community
Hi everyone, 

I have spent about 2 days trying to figure this one out...I am using this gist as a script and the code below on the front end. I checked that my web url is correct and I also made sure that the sheet's permissions are viewable by everyone with the link. The post request says it's successful on the front end, but the spreadsheet isn't populated. Do you know what I am doing wrong or how I can debug this? 

const data = {
id: 1,
character: 'Expert',
score: 80
}

export default async function doPost() {
let json = JSON.stringify(data)
.then(function (response) {
console.log('works!')
console.log(response);
})
.catch(function (error) {
console.log(error);
});

}

William Trout

unread,
May 8, 2023, 2:33:16 PM5/8/23
to Google Apps Script Community
Were you able to get this figured out?

Brett Grear

unread,
May 9, 2023, 6:40:52 AM5/9/23
to Google Apps Script Community
Is the web app registering an execution on apps script?
Reply all
Reply to author
Forward
0 new messages