Quicknode 為您的 RPC 端點提供錯誤日誌。您可直接從儀表板查看詳細的錯誤資訊,輕鬆識別並解決問題。
HTTP 錯誤代碼
Let's look at the common HTTP errors you can encounter, what they mean and what you can do to prevent them.
HTTP 錯誤代碼範例
以下程式碼片段是錯誤代碼429 的範例。
{
"jsonrpc": "2.0",
"error": {
"code": 429,
"message": "The requests per second (RPS) of your requests are higher than your plan allows."
},
"id": 1
}
EVM RPC Error Codes
Let's look at the common EVM errors you can encounter, what they mean and what you can do to prevent it.
EVM RPC Error Code Example
以下程式碼片段是錯誤代碼-32601 的範例。
{
"jsonrpc": "2.0",
"id": 1,
"error": {
"code": -32601,
"message": "the method eth_randomMethod does not exist/is not available"
}
}
上述定義的 RPC 錯誤,是您在 ETH、BSC、Polygon 等鏈上進行開發時可能遇到的常見錯誤彙整。這些鏈運行於多個客戶端,且各自擁有專屬的錯誤定義。您亦可在此處查看節點客戶端原始碼中提到的錯誤:
如果您遇到其他錯誤代碼,請透過提交服務單告知我們。我們非常樂意為您提供協助