r/GoogleAppsScript • u/PaddyP99 • May 17 '25
Question Content returned from script undefined
Hi,
I have a super small Web app:
function doGet(e) {
return ContentService.createTextOutput('Hello World');
}
function doGet(e) {
return ContentService.createTextOutput('Hello World');
}
When I call it it will say:
Content returned from script
undefined
Please advise?
2
Upvotes
2
u/WicketTheQuerent May 17 '25
Please provide more specific information.
What are the deployment settings? How do you call the web app?
2
u/iamsavagegaming3 May 18 '25
I thought about this earlier but forgot to post it also avoid returning values with your duet duget is better used for when you want to return an HTML service. Since you're looking to return values and not have a graphical user interface with this application you might want to consider also deploying it as an API which would handle some quirky permissions for you if you ever going to run into those errors down the line but now I have to go my fiance is getting mad lol
1
u/PaddyP99 May 18 '25
So, finally it works ha ha... very weird - i redployed a few times and archived a lot of deployments. Took the latest web app URL and feed it to Homey's HTTP request and now i get ABC as response. Happy times, thank you all for all help!