“We're sorry, a server error occurred. Please wait a bit and try again” error when running a function from a custom menu

前端 未结 2 921
天命终不由人
天命终不由人 2020-12-06 00:07

I have received 341 error notification emails for the below error

We\'re sorry, a server error occurred. Please wait a bit and try again.

相关标签:
2条回答
  • 2020-12-06 00:15
    • In the script -> Resources -> Advanced google services -> turn on Drive API
    • Click in below message " Google Cloud Platform API Dashboard" to open thee cloud project for the script.
    • With the project selected, search in the search bar "Drive API" -> ENABLE, do the same for "Google Drive API".

    Done, no more "we're are sorry server error" for DriveApp functions in the script.

    0 讨论(0)
  • 2020-12-06 00:25

    Problem Solved.

    The problem is with string replace function in some other function. I am using the string replace function with regular expression as input to replace function. The regular expression was incorrect due which i am getting the above error.

    That's really weird, at least GAS should give some proper error.

    0 讨论(0)
提交回复
热议问题