Script function not found: doGet

前端 未结 3 1919
面向向阳花
面向向阳花 2021-01-13 11:22

I keep getting this error message when I try to click \"Test web app for your latest code.\" in the Publish dialog box.

But I haven\'t defined any function called do

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-13 12:20

    I received this error because I had defined a doPost() function in my Google Script but my form was submitting a GET request rather than a POST request.

    The solution to this problem was to submit a POST request from the form:

提交回复
热议问题