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

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.

Leave a Comment