javascript - Google Apps Script function not found: doGet -


i'm getting

script function not found: doget 

or

script function not found: dopost 

when get/post google script:

function doget(e){return contentservice.createtextoutput("user says")}  function dopost(e) {   return htmlservice.createhtmloutput(     "<form action='http://www.example.com/users/gmail_permission/' method='post' id='foo'>" +      "<input type='hidden' name='gmail' value='getemail()' >" +     "<input type='hidden' name='id' value='e.parameter.user_id' >" +         "</form>" +     "<script>document.getelementbyid('foo').submit();</script>"); }  function getemail() {   return session.getactiveuser().getemail(); } 

the weird thing i'll above error when visit webapp url on browser. when use hurl.it, redirected google drive. when 'test web app latest code.' on google.script.com, response works fine.

pretty lost going on.... here script:

 https://script.google.com/macros/s/akfycbz0xgeoeup4v6w60n7yp-ddilltpefxmqzhmjurngzohpfqa_er/exec 

here gets

 hurl.it - https://accounts.google.com/servicelogin?service=wise&followup=https://script.google.com/macros/s/akfycbz0xgeoeup4v6w60n7yp-ddilltpefxmqzhmjurngzohpfqa_er/exec&continue=https://script.google.com/macros/s/akfycbz0xgeoeup4v6w60n7yp-ddilltpefxmqzhmjurngzohpfqa_er/exec&passive=1209600   script.google.com - https://script.google.com/macros/s/akfycbych4jk7vceihe52jioribzcghryapruwuzfshwawib/dev   browser - https://script.google.com/macros/s/akfycbz0xgeoeup4v6w60n7yp-ddilltpefxmqzhmjurngzohpfqa_er/exec 

finally found answer.

it's pretty stupid, apparently saving , republishing google script web app not enough. need save new version , publish new version make sure app gets updated properly.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -