Questions tagged [error]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
11 views

Custom program error 0xbbf, given account is owned by a different program than expected

I was developing without issue on devnet and then decided to deploy to mainnet. Suddenly the same instruction that used to work on devnet gave rise to the following on mainnet Error: failed to send ...
  • 453
1 vote
1 answer
35 views

Attempt to debit an account but found no record of a prior credit

I am trying to map the parking space in a location. In the flowing is my account and method to return the available position in a location. #[account] pub struct Location { pub id : String, ...
  • 21
0 votes
1 answer
19 views

System Program undeclared crate in Anchor

I am getting this error when using anchor build. error[E0433]: failed to resolve: use of undeclared crate or module system_program --> programs/account_data_program/src/instructions/create.rs:22:4 |...
  • 43
0 votes
0 answers
9 views

Amchor deploy error: Account has insufficient funds

These are step to deploy an anchor project 1- in Cargo.toml file change those cluster = "devnet" wallet = "./wallet.json" 2- create a pubkey of the wallet.json solana-keygen new -...
  • 642
3 votes
1 answer
88 views

Getting error of "Provided owner is not allowed"

I have to send multiple transactions simultaneously so, if there is no token account in the sender or receiver wallet then it first creates the token account and then signs other single transaction ...
  • 313
3 votes
1 answer
50 views

Error on connection.confirmTransaction: ws error

Problem Hello. I got a problem only on mainnet-beta. Everything is working fine on devnet. Right after my connection.sendTransaction, I'm doing a connection.confirmTransaction this way: const ...
  • 31
1 vote
1 answer
69 views

Error: Non-base58 character

I upload the program to the network, but when interacting it issues this error Error: Non-base58 character at Object.decode (/mnt/c/Users/Mateo/block3/node_modules/base-x/src/index.js:111:11) ...
3 votes
1 answer
289 views

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'publicKey') in solana

let tx = await program.methods.initialize(a,b).accounts({ addAccount: addAccount.publicKey, user: provider.wallet.publicKey, systemProgram: SystemProgram.programId, })....
5 votes
2 answers
217 views

Can't start solana-test-validator on MacOS 13.0.1

Problem Trying to start solana-test-validator, but it closes unexpectedly without meaningful errors. Logs: [2022-11-20T20:56:59.883887000Z INFO solana_test_validator] solana-validator 1.15.0 (src:...
1 vote
2 answers
96 views

Requesting airdrop of SOL on devnet or testnet throws error, rate limit is reached, even though I never reached the rate limit in the first place

I currently only have 0.623 SOL on this account, and I have not requested more than 24 sol per day/ 2 sol per airdrop, so I don't understand why it says "rate limit reached". How can I fix ...
1 vote
0 answers
33 views

"unknown variant `base58`, expected `binary`" error when running `solana program show --buffers | --programs

When I run solana program show --programs ( or with --buffers ), I'm getting this weird error with no details on what's actually wrong. Any suggestions? Error: RPC response error -32602: unknown ...
1 vote
0 answers
50 views

Sending a transaction does not work in NextJS production mode

i deployed my website built with NextJS on a dedicated node server served by Nginx. When sending a transaction, executing Next in dev mode both locally and on the server everything works fine, but ...
  • 11
1 vote
1 answer
50 views

what is the meaning of custom program error: 0x70? (112 in decimal)

I am getting this error in my contract written in Anchor. I have already checked the custom errors of anchor at https://docs.rs/anchor-lang/latest/anchor_lang/error/enum.ErrorCode.html, but did not ...
0 votes
0 answers
45 views

error trying to getTransaction() encoding jsonParsed

I am using "@solana/web3.js": "^1.63.1" import { Connection } from "@solana/web3.js"; const conn = new Connection('https://solana-api.projectserum.com', 'confirmed'); ...
5 votes
2 answers
118 views

How do I deploy a program to Solana - Solana/Rust

I am attempting to run the HelloWorld Solana program. I have cloned this repo. I have started the project with solana-test-validator I ran npm install and then was able to build the rust project with ...
  • 209
4 votes
1 answer
150 views

Solana/Rust minting error: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x3

I wanted to test using Rust to create my own token on the Solana network. I have created a wallet holding .07248 SOL I then used rust to create my new Token ID and Token Address. However, when I use ...
  • 187
5 votes
1 answer
100 views

get Solana transaction status using Rust

I'm trying to get Solana transaction status using Rust. You can get the transaction status using explorer.solana.com, but I want to get it via code. I tried to use the get_signature_status function in ...
  • 187
4 votes
1 answer
36 views

Getting issue “failed to resolve: maybe a missing crate `solana_program`?”

I am getting the following error when compiling a Solana program: $ npm run build > hello-world@1.0.0 build > cargo build-bpf --manifest-path=./src/program/Cargo.toml --bpf-out-dir=./dist/...
  • 209
1 vote
1 answer
103 views

`cargo build-sbf` doesn't work on linux

I consistently get this error message when running cargo build-sbf or cargo build-bpf Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf cargo-build-bpf child: /home/anish/.local/...
1 vote
2 answers
207 views

What is the likely cause of the error `The program could not deserialize the given instruction`

I ran into this error message when running a transaction, any idea what could be going wrong? errorLogs: [ 'Program log: AnchorError occurred. Error Code: InstructionDidNotDeserialize. Error ...
  • 2,589
0 votes
1 answer
33 views

Avoid 'parsed' type error from getParsedTransaction

As you can see in screenshots, I have a type error. How can I avoid this problem ? The type of my transaction is 'ParsedTransactionWithMeta' from getParsedTransaction method. Same problem with '...
  • 368
1 vote
1 answer
40 views

Is it possible to test an RPC?

I'm doing some Web3 stuff, when an error appeared at the beginning of the process. Targeting the problem, I realized that the problem was with my RPC (which may have crashed). I temporarily tried an ...
  • 368
0 votes
0 answers
23 views

receiving the following error using solana cli "Error: RPC response error -32003: Transaction signature verification failure"

I am using the following commands to try and send Solana and am receiving "Error: RPC response error -32003: Transaction signature verification failure" solana transfer --from --allow-...
  • 1
0 votes
0 answers
9 views

Trying to publish on solana.com/ecosystem [closed]

I can't publish my project in the solana.com ecosystem dashboard, after a couple of days trying, it always shows the error: Error! An error occurred while submitting your project, please try again ...
0 votes
0 answers
21 views

Error: Invalid arguments: authority not provided for transaction signed by keypair

I have a code that uses keypair from file to sign transactions. const payer = Keypair.fromSecretKey(BufferJs.from(keypair)); const wallet = new anchor.Wallet(payer); //// //// const tx = ...
  • 171
1 vote
1 answer
62 views

Error: SolanaJSONRPCError code:-32602

When I use my program, 90% of my transactions from the program's instructions pass; but during the 10%, the program throws a SolanaJSONRPCError with -32602 code. Please what does it mean and how can I ...
2 votes
1 answer
108 views

solana-test-validator "Illegal instruction" mac M1

When I run solana-test-validator I get Job 1, 'solana-test-validator' terminated by signal SIGILL (Illegal instruction) Configuration: Mac m1 12.1 cargo 1.62.1 (a748cf5a3 2022-06-08) rustup 1.25.1 (...
  • 2,935
0 votes
1 answer
24 views

Difference between assert!() and custom Anchor Errors [closed]

What is difference in between #[error_code(offset = 0)] pub enum CoinFlipError { #[msg("Bet Amount small")] BetTooSmall, } and assert!(betAmount > minAllowedBet, "Bet Amount ...
2 votes
1 answer
71 views

Calling one instruction after another results in Error: This account may not be used to pay transaction fees

I have two methods in my program, one to initialize a PDA and set some state variables the other to transfer SOL from one to another account pub fn initialize(ctx: Context<Initialize>, ...
1 vote
1 answer
38 views

Cannot allocate memory error

I'm running a container based on the official solana image. Dockerfile: ARG SOLANA_VERSION=v1.11.3 FROM solanalabs/solana:${SOLANA_VERSION} COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint....
4 votes
2 answers
104 views

How to react to this RPC error as a dev: Node is behind by 166 slots

I was getting this error when sending a transaction to the RPC: Transaction failed: RPC response error -32005: Node is behind by 166 slots Why does this happen? How should we react to this error? ...
1 vote
1 answer
54 views

Where do InstructionErrors go?

I have my validator running, I have my logs running, I have a program loaded with many different custom InstructionErrors. I submit a tx, and when it succeeds I see all the log messages. When the tx ...
0 votes
1 answer
28 views

How to interpret errors from Solana/web3.js package

Hey all I'm getting this error {"InstructionError": [2, {"Custom": 167}]} thrown when using connection.confirmTransaction. Thus far I've interpreted what different instruction ...
0 votes
3 answers
106 views

Issue, transfer SOL via CPI call

I am trying to make a SOL transfer via a CPI call, I managed to create an account to which I have to transfer, this account's authority is owned by a (master) PDA, transfer/deposit works fine but when ...
  • 111
0 votes
1 answer
34 views

Runtime Error: "InvalidRentPayingAccount" [closed]

Why am I getting this error? This is the runtime error version of Can you create accounts with less lamports than the rent-exempt minimum?
  • 101
1 vote
2 answers
127 views

Error Code: DeclaredProgramIdMismatch

I am trying to run some tests in my Solana Anchor project but I get an error saying that the declared program id does not match the actual program id. Error: AnchorError occurred. Error Code: ...