> For the complete documentation index, see [llms.txt](https://docs.triton.one/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.triton.one/solana/faq/error-handling/common-solana-errors.md).

# Common Solana errors

Common Solana JSON-RPC error codes with fixes.

## Common Solana JSON-RPC codes

This is a standard list of common JSON-RPC error codes you may experience. For a comprehensive list, please refer to [Anza's kit repository](https://github.com/anza-xyz/kit).

| Code     | Error                                                                                     | What to do                                                                                                                                                                                                                                                                                                                                                             |
| -------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `-32001` | Block cleaned up (`BLOCK_CLEANED_UP`)                                                     | The node no longer holds that block. Request a slot at or after the first available block given in the error message.                                                                                                                                                                                                                                                  |
| `-32002` | Transaction preflight failure (`SEND_TRANSACTION_PREFLIGHT_FAILURE`)                      | The transaction failed simulation before it was sent. Read the simulation logs in the error's `data` field, fix the transaction, and resend.                                                                                                                                                                                                                           |
| `-32003` | Transaction signature verification failure (`TRANSACTION_SIGNATURE_VERIFICATION_FAILURE`) | Verify the keypair, rebuild the transaction with a current blockhash and sign it immediately before submission, check the signatures format, and simulate first.                                                                                                                                                                                                       |
| `-32015` | Unsupported transaction version (`UNSUPPORTED_TRANSACTION_VERSION`)                       | Retry with the `maxSupportedTransactionVersion` parameter set to the version the error message names (for example, `1`, since mainnet blocks now carry v1 transactions). With `maxSupportedTransactionVersion` set to `1` or higher, `base58` encoding (and its legacy alias `binary`) isn't supported and fails with `-32602`; use `json`, `jsonParsed`, or `base64`. |
| `-32601` | Method not found                                                                          | The method you are trying to use is either invalid or does not exist. Check the method name. Methods that Triton disables return HTTP `410` instead; see [Triton RPC error codes](/solana/faq/error-handling/triton-rpc-error-codes.md).                                                                                                                               |
| `-32602` | Invalid method parameter(s)                                                               | Double-check your request format against Solana's JSON-RPC spec.                                                                                                                                                                                                                                                                                                       |
| `-32603` | Internal JSON-RPC error                                                                   | Retry the request after a short delay. On `sendTransaction`, Triton returns this code with `transaction simulation transient error` or `transaction simulation unavailable` when it couldn't run the preflight simulation; retry the send.                                                                                                                             |
| `-32700` | Parse error                                                                               | The server couldn't parse your request body as JSON. Check your JSON structure. Triton returns this error with HTTP `200`.                                                                                                                                                                                                                                             |

## List of uncommon Web3JS errors

Here are some uncommon `@solana/web3.js` errors we have previously helped our customers with, which might help you troubleshoot your problem.

### Port exhaustion in NodeJS

Suppose you're running high-throughput asynchronous loads in a NodeJS environment. In that case, you might find yourself getting persistent socket and connection errors such as: `ECONNREFUSED`, `ECONNRESET`, Connection Timeout Error, other side closed, fetch failed.

If so, Triton One provides a [comprehensive guide](/solana/faq/error-handling/web3js-socket-connection-issues.md) on why this occurs and the steps to fix it.

***

<i class="fa-life-ring">:life-ring:</i> Contact support by clicking the chat icon in your [customer dashboard](https://customers.triton.one)\ <i class="fa-briefcase">:briefcase:</i> Sales questions? [Contact us](https://triton.one/contact)\ <i class="fa-sparkles">:sparkles:</i> AI agent? Read [llms.txt](https://docs.triton.one/llms.txt)\ <i class="fa-rss">:rss:</i> Follow updates: [Blog](https://blog.triton.one) · [X](https://x.com/triton_one) · [YouTube](https://www.youtube.com/@triton_one_ltd) · [Telegram](https://t.me/tritonone) · [GitHub](https://github.com/rpcpool)
