跳至主要內容

Solana Error Code Reference

更新於
2026年4月15日
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.

400請求錯誤

Incorrect HTTP request type (e.g. using GET instead of POST) or invalid characters

401未經授權

One or more security requirements not met such as incorrect token auth, IP not in whitelist, invalid JWT, etc

403存取遭拒

Endpoint disabled (one reason could be a past due payment)

403Forbidden — custom trace not found in allowed custom traces

Custom trace code not whitelisted; submit a ticket to go through the approval process

404未找到

Incorrect URL or incorrect method

413內容過大

請求正文過大

429請求過多

The requests per second (RPS) of your requests are higher than your plan allows; see support docs for details

500內部伺服器錯誤

Submit a ticket for the support team to investigate as soon as possible

503服務無法使用

Submit a ticket for the support team to investigate as soon as possible

HTTP 錯誤代碼範例

{
"jsonrpc": "2.0",
"error": {
"code": 429,
"message": "The requests per second (RPS) of your requests are higher than your plan allows."
},
"id": 1
}

Solana RPC Error Codes

When working with Solana, understanding its API error codes is essential for effective troubleshooting and smooth application operation.

-32002Transaction simulation failed / preflight check error

The transaction being sent has errors; double check params, signatures, and message

-32002Blockhash not found

The blockhash sent is not known by the validator yet; implement a retry mechanism

-32003Transaction signature verification failure

One or more signatures are invalid; verify private/public keys and signatures

-32004Block not available for slot

Timeout or block not retrievable; use a retry mechanism

-32005Node is unhealthy / behind by slots

Node is behind the tip; retry with backoff or try another endpoint

-32007Slot was skipped or missing due to snapshot jump

Requested block does not exist; verify the slot in a block explorer

-32009Slot was skipped or missing in long-term storage

The requested slot is missing from long-term storage; see support FAQ for details

-32010Key excluded from account secondary indexes

Unexpected payload or incorrect data for the method; ensure request body matches validator expectations

-32013Transaction signature length mismatch

Signature length is not as expected; re-encode or rebuild the transaction

-32014Block status not yet available

Block is pending or not yet synced; retry later

-32015Transaction version not supported

Use "maxSupportedTransactionVersion": 0 or upgrade client to support versioned transactions

-32016Minimum context slot not reached

The required context slot is too far in the future; lower the minimum context slot or retry later

-32602Invalid params

Flags/params are invalid; double check method parameters against Solana docs

Solana RPC Error Code Example

{
"jsonrpc": "2.0",
"error": {
"code": -32602,
"message": "Invalid param: Invalid"
},
"id": 1
}

端點日誌

Quicknode 會為您的 RPC 端點提供日誌,以協助您診斷問題。您可透過導航至以下位置,直接在Quicknode 儀表板中查看日誌:


  1. 側邊欄中的終點
  2. 選擇您的終端點
  3. 開啟「日誌」分頁

您可以根據時間區間、回應類型、方法及網路來篩選日誌。

哪些內容會被記錄

端點請求
發送至您端點的請求,包括 HTTP 狀態碼、請求方法、RPC 方法或路徑,以及時間戳記。

錯誤詳細資訊
若有提供,失敗的請求將包含錯誤詳細資訊,例如 RPC 錯誤代碼、請求與回應正文,以及相關文件連結。

記錄限制

日誌的可用性可能因方法、回應類型、網路及方案而異。為維持最佳的端點效能,日誌記錄功能採「盡力而為」原則運作。在流量高峰期間,為維持低延遲,部分日誌可能會被捨棄。

保存與存取

「建置」與「擴展」方案包含儀表板存取權限,並提供標準的日誌保留期限。 「企業」方案則提供更長的保留期限,以及透過程式化 API 存取日誌的功能。

如果您遇到其他錯誤代碼,請透過提交服務單告知我們。我們非常樂意為您提供協助

分享這份文件