处理Gmail插件超时 [英] Handling Gmail Addon Timeouts

查看:58
本文介绍了处理Gmail插件超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从gmail附件上上传较大尺寸的文档,但是当我尝试击中端点时,我一直收到"Gmail无法执行此附加操作"的消息,因为它花费的时间太长,而且我超出了上限"执行时间"为30秒.有没有一种方法可以增加最长执行时间或至少捕获错误并显示Gmail的运行时错误消息以外的其他内容?

I'm trying to upload a larger size document from a gmail add on but I keep getting "Gmail could not perform this add-on action" when I try to hit my endpoint because it takes too long and I "Exceeded maximum execution time" of 30 seconds. Is there a way to increase the maximum execution time or at least catch the error and display something else other than Gmail's runtime error message?

推荐答案

我找到了一些Google文档来阐明此问题.查看页面的回调函数"部分.卡服务将您的回调函数执行时间限制为30秒.

I found some Google documentation that sheds light on this issue. Check out the Callback Function section of this page. Card Service limits your callback function execution time to 30 seconds.

您可能必须满足汤姆的回答.我还将对您正在使用的文件添加大小限制,以便您可以排除对于Card Service显然太大的文件.不过,如果您找到了比此更好的解决方案,我将很感兴趣.

You may have to settle for Tom's answer. I'd also add size restrictions to the files that you're working with so that you can rule out files that are obviously too large for Card Service. I'd be interested, though, if you found a better solution than this.

这篇关于处理Gmail插件超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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