gpt4 book ai didi

java - 消息太大时 AppEngine 任务队列异常

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:36:18 24 4
gpt4 key购买 nike

看完TaskOptionsQueue从 AppEngine Javadoc API 中,我找不到当任务的有效负载超过 100KB 的限制时抛出的异常。我在哪里可以找到这些信息?

更新: 提交了 more specific exception 请求.

最佳答案

通过查看 source code 找到我的答案.

if (txn != null &&
bulkAddRequest.encodingSize() > QueueConstants.maxTransactionalRequestSizeBytes()) {
throw new IllegalArgumentException(
String.format("Transactional add may not be larger than %d bytes: %d bytes requested.",
QueueConstants.maxTransactionalRequestSizeBytes(),
bulkAddRequest.encodingSize()));
}

关于java - 消息太大时 AppEngine 任务队列异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7448611/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com