问题提交请求到节点时出错,重试新节点:忙碌

huangapple go评论54阅读模式
英文:

Problem submitting request to node, retry with new node: BUSY

问题

我正在从智能合同调用一个函数:

ContractCallQuery query = new ContractCallQuery()
                    .setContractId(ContractId.fromString(request.getContractID()))
                    .setGas(100_000_000)
                    .setFunction(request.getContractFunctionName(), contractFunctionParameters);

这导致了一个"BUSY"响应(在尝试47时超时):

web - 2023-01-30 22:53:28,795 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - 在尝试#43时向节点0.0.3提交请求时出现问题,尝试使用新节点重试:BUSY
web - 2023-01-30 22:53:28,936 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - 在尝试#44期间出现故障后,将在8000毫秒后重试节点0.0.6:BUSY
web - 2023-01-30 22:53:37,032 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - 在尝试#45时向节点0.0.5提交请求时出现问题,尝试使用新节点重试:BUSY
web - 2023-01-30 22:53:37,182 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - 在尝试#46时向节点0.0.3提交请求时出现问题,尝试使用新节点重试:BUSY
web - 2023-01-30 22:53:37,321 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - 在尝试#47期间出现故障后,将在8000毫秒后重试节点0.0.6:BUSY
java.util.concurrent.TimeoutException

这以前有效,我没有更改任何代码。我该如何解决这个问题?

英文:

I am calling a function from a smart contract:

ContractCallQuery query = new ContractCallQuery()
                    .setContractId(ContractId.fromString(request.getContractID()))
                    .setGas(100_000_000)
                    .setFunction(request.getContractFunctionName(), contractFunctionParameters);

Which results in a BUSY response (timing out at attempt 47):

web - 2023-01-30 22:53:28,795 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - Problem submitting request to node 0.0.3 for attempt #43, retry with new node: BUSY
web - 2023-01-30 22:53:28,936 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - Retrying node 0.0.6 in 8000 ms after failure during attempt #44: BUSY
web - 2023-01-30 22:53:37,032 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - Problem submitting request to node 0.0.5 for attempt #45, retry with new node: BUSY
web - 2023-01-30 22:53:37,182 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - Problem submitting request to node 0.0.3 for attempt #46, retry with new node: BUSY
web - 2023-01-30 22:53:37,321 [Test worker] WARN  c.h.h.sdk.Query$QueryCostQuery - Retrying node 0.0.6 in 8000 ms after failure during attempt #47: BUSY
java.util.concurrent.TimeoutException

This used to work and I havent chaged any code. How do I resolve this?

答案1

得分: 3

"BUSY"错误发生在网络拥挤,并且限制已达到时。您必须等待网络不再拥挤才能完成任何交易。

如果您在测试网上,请考虑运行本地实例以继续测试。强烈建议在开发中使用本地节点。

以下是设置自己的本地节点的教程:https://hedera.com/blog/how-to-set-up-your-own-hedera-local-network-using-docker

英文:

The BUSY error happens when the network gets congested with other users and the throttle has reached its limit. You'll have to wait until the network is no longer congested to complete any transactions.

If you are on testnet consider running a local instance to continue testing. Its highly encouraged to use a local node for development.

Here is a tutorial on how to set up your own local node. https://hedera.com/blog/how-to-set-up-your-own-hedera-local-network-using-docker

huangapple
  • 本文由 发表于 2023年2月10日 05:56:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/75404834.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定