问题排查

本页介绍了一些常见的 Blockchain Node Engine 错误及其解决方法。

无法解析主机

在区块链节点仍在创建时,尝试使用该节点时会发生以下错误:

Could not resolve host: json-rpc.abc1234.blockchainnodeengine.com

如需解决此问题,请等待节点进入 RUNNING 状态。 您可以参阅列出区块链节点,了解相应状态。

400 错误:方法不允许未注册的调用者

当您尝试在没有 API 密钥的情况下使用区块链节点时,会发生以下错误:

400 error: Method doesn't allow unregistered callers (callers without established identity). Please use API Key or other form of API consumer identity to call this API.

如需解决此问题,请参阅:创建 API 密钥

我不知道我的节点是否已完成同步

如需解决此问题,请执行以下某项操作:

  • 完整节点:调用 eth_syncing,如果您收到 false 响应,则表示完成。

    curl -H POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":2586,"method":"eth_syncing","params":[]}]}' https://<executionClientJsonRpcEndpoint>?key=<API_KEY>
    
    {"jsonrpc":"2.0","id":2586,"result":false}
    
  • 归档节点:查询指标端点 executionClientPrometheusMetricsApiEndpoint

    curl -H "Content-Type: application/json" 'http://<executionClientPrometheusMetricsApiEndpoint>/debug/metrics/prometheus?key=<API_KEY>'
    

    在响应中查找 block_hashes 值。