Debug mode would not work because he is using environment variables. But if you simulate the e variable, you can try debug.
One thing you should do is check the URL you are using. Not sure this is a valid URL for the purposes of the openByURL method. It may be easier to use openById and use the id which is:
1sEwHbKVO7rjbQuEiA6vXN7imn_y072lkgc6q84fNxkw
This forms part of the URL you are using in the script.
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/57e9e9da-3d8d-4222-864c-35c5867c7ed4n%40googlegroups.com.
--