Apps Script to create Blogger post fails with onFormSubmit trigger

242 views
Skip to first unread message

John Dee

unread,
Aug 21, 2022, 4:42:54 AM8/21/22
to Google Apps Script Community
I created a simple script to create posts through the Blogger API. What I don't understand is that when I use it through a trigger (on-submit trigger or time-based trigger), the call pretty much almost fails with an error message saying that I reached some usage limit. But if I run the same function manually in the editor, the post is often created successfully. Often, because even when running it manually, it sometimes returns a limit reached error. I don't understand why, because I might have done a total of fifty calls over two days. It seems totally arbitrary. And I particularly don't understand if I submit the form, the function errors out, but then a second later, if I run the function in the editor, it succeeds. I even managed to make it work through curl. Why wouldn't it work through a trigger? Frankly, I'm at my wit's end.

cbmserv...@gmail.com

unread,
Aug 21, 2022, 2:27:31 PM8/21/22
to google-apps-sc...@googlegroups.com

The usage limits are aimed towards automated actions only. It does not affect manual invocation of activities. The limits reset after 24 hours usually. So just wait one day and try running it automatically to check.

--
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/e164e5c0-55f6-458f-9fcd-8aa1f07c9587n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages