今天只发送了10封电子邮件,超出每日限额? [英] Only sent 10 emails today, exceeded daily limit?

查看:673
本文介绍了今天只发送了10封电子邮件,超出每日限额?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以看到每日限额是100,但我远远没有达到这个标准。



昨天我通过我的Google Script整天发送测试邮件给自己从来没有问题。



今天我只发送了大约10个,现在我被消息阻止:
遇到错误:服务



循环和发送太多没有问题 - 这是相同的逻辑,我所做的只是修复了一些问题电子邮件本身的拼写错误!我只是给自己发送电子邮件。 您已超出配额限制。不要花时间开始提出50个请求以及您今天提出的请求。也许它仍然在24小时内,因此你的每日限制超出了错误。



您可以看到目前的限制



此外,您的错误与以下例外情况类似:



  • 短时间内调用服务的次数太多:日历。在通话之间试用
    Utilities.sleep(1000)。这表明脚本
    在很短的时间内多次调用给定的服务。

  • 服务使用太多计算机时间一天。这表明脚本的
    超过了一天的总可执行时间。
    通常发生在触发器上运行的脚本中,其每日的下限比手动执行的脚本低


尝试实施指数退避


指数退避是针对网络
应用程序的一种标准错误处理策略,客户机周期性重试在越来越多的时间内失败的请求
。如果大量的请求或
繁重的网络流量导致服务器返回错误,那么指数
的退避可能是处理这些错误的一个好策略。



I can see that the daily limit is 100. But I'm nowhere near that.

Yesterday I was sending test emails to myself via my Google Script all day and never had a problem. I must have sent like 50 in total.

Today I merely sent about 10, and now I'm blocked with the message: "Error encountered: Service invoked too many times for one day: email."

There's no problem with it looping and sending too many - it's the same logic, all I've done is fixed some spelling mistakes in the body of the email itself! And I'm only emailing myself.

解决方案

You've exceeded your quota limit. Take not of the time you started making the 50 requests plus the requests you made today. Maybe it was still under the span of 24 hours, hence you got a daily limit exceed error.

You can see the current limitations here.

Also, your error seems similar to these exceptions:

  • Service invoked too many times in a short time: Calendar. Try Utilities.sleep(1000) between calls. This indicates that the script called the given service too many times in a short period.

  • Service using too much computer time for one day. This indicates that the script exceeded the total allowable execution time for one day. It most commonly occurs for scripts that run on a trigger, which have a lower daily limit than scripts executed manually.

Try implementing Exponential Backoff:

Exponential backoff is a standard error handling strategy for network applications in which the client periodically retries a failed request over an increasing amount of time. If a high volume of requests or heavy network traffic causes the server to return errors, exponential backoff may be a good strategy for handling those errors.

这篇关于今天只发送了10封电子邮件,超出每日限额?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆