Questions tagged [error]
Questions relating to troubleshooting specific errors.
88
questions
2
votes
0
answers
42
views
XCM transfer of ROC from parachain to Rococo does not update balance on Rococo
I am currently successfully able to transfer ROC from Rococo to a parachain using a Reserve Asset Transfer. However when I want to transfer some of the ROC from our parachain back to Rococo but when I ...
0
votes
0
answers
7
views
Metamask / Nano Ledger>
Metamask/ Nano Ledger: failed to execute requestDevide on HID. Must be handing a user gesture to show a permission request
Hello, 2 years without problems, until yesterday I did: Reset Chrome settings....
0
votes
1
answer
39
views
getting error while building substrate blockchain?
I have cloned polkadot-sdk version 1.1.0. When I try to build binary it is throwing error. Can you please tell why I am getting error as I have not changed anything in codebase yet.
rust versions ...
0
votes
0
answers
46
views
could not compile `proc-macro2` (lib) due to 3 previous errors
I run cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --tag v0.23.0 --force --locked and then got an error, version of the proc-macro2 library is ...
1
vote
0
answers
14
views
"ContractTrapped" Error even with successful cross-contract call
let result_call = ink::env::call::build_call::<Environment>()
.call(self.escrow_address)
.gas_limit(0)
.transferred_value(0)
...
5
votes
1
answer
122
views
How to solve this error: associated type `BlockNumber` not found for `T`?
I have substrate node template with babe and i want to integrate orml-currencies.
I'm using this in cargo.toml:
orml-currencies = { default-features = false, git = "https://github.com/open-web3-...
3
votes
2
answers
90
views
XCM Reserve Transfer Between AssetHub (Rococo) is Unroutable
I am testing transferring ROC between AssetHub and a Parachain. The HRMP channels are already open but when I submit try the following XCM Message:
I get this error:
[
{
type: "...
1
vote
0
answers
41
views
Parachain stuck at authoring runtime upgrade block
Our testnet parachain is stuck exactly at the block in which the runtime upgrade is authored. It was authorized and enacted via parachainSystem as recommended. The upgrade neither includes any ...
0
votes
1
answer
22
views
error[E0277]: the trait bound `xcm::v3::SendError: PalletError` is not satisfied
I'm attempting to utilize the XCM error within the context of my pallet's error handling, but I'm facing this problem.
The error which i'm using
#[pallet::error]
pub enum Error<T, I = ()> {
...
1
vote
1
answer
55
views
Why is this cross-contract call misbehaving?
#[ink(message)]
pub fn create_new_better_payment(
&mut self,
_value: Balance,
_arbiter_provider: AccountId,
_deadline: u64,
//...
0
votes
0
answers
115
views
error[E0277]: the trait bound is not satisfied for Deserialize<'_>` and Serialize<'_>`
Hi I am currently upgrading our runtime to Polkadot 1.0 but when I try to build it get the following errors
error[E0277]: the trait bound `MintingRateInfo: Deserialize<'_>` is not satisfied
...
3
votes
1
answer
31
views
Why can't I use structs with data on my pallet error?
I have this code that will not compile :
#[pallet::error]
pub enum Error<T> {
SomeErr{ account : T::AccountId }
}
This will not compile with the error :
AccountId associated type not found.
...
0
votes
0
answers
16
views
batchall.sign throws TypeError: Cannot read properties of undefined (reading 'specVersion')
Trying to form a batchAll command that carries out 2 activities:
Deposit 1 GLMR from wallet1 to wallet2
Cancel tokens' delegation revoke
When I try to sign the batch with wallet1 (batchAllExtrinsic....
2
votes
2
answers
36
views
Ink Smart Contract call Error
I am deploying an ink! smart contract to a local network, but when I tried to call any function from it i have this error:
> { Err: { Module: { index: '8', error: '0x02000000' } } }
Does anyone ...
4
votes
1
answer
27
views
ModuleError, BadState
Setup
I'm currently integrating staking functionality into my pallet. Here is a snipped of the relevant part:
let who = ensure_signed(origin.clone())?;
let required_stake = T::RequiredStake::get();
...
2
votes
2
answers
963
views
how to resolve? error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
error[E0422]: cannot find struct, variant or union type `LineColumn` in crate `proc_macro`
--> /home/wangchao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/proc-macro2-1.0.56/src/...
0
votes
0
answers
25
views
when running a validating nodes, firewall setting is essential?
when running a nodes, firewall is essential?
i used this command sudo ufw allow 3033/tpc but it`s result is "ERROR: Bad port"
what`s the problem? can i just done "sudo ufw enable" ...
3
votes
0
answers
48
views
Transaction fails when using Polkadot extension
We have a customized substrate chain currently running and we are facing some signature issues (repo).
This chain has custom types, custom header and an additional extension to check a parameter ...
3
votes
1
answer
189
views
Getting OutOfGas Error when trying to call smart contract
I am running tests of my !ink smart contracts using @727-ventures/typechain-polkadot module.
But when I am running tests, sometimes getting OutOfGas Error.
The strange thing is that not all cases are ...
6
votes
3
answers
163
views
Error WeightNotComputable - XCM Transaction
I am getting the XCM error of WeightNotComputable. What could be the cause of this?
Here is the XCM code which fails.
3
votes
1
answer
142
views
Build fails: protoc failed: bitswap.v1.2.0.proto: No such file or directory
When building a Substrate-project, I receive the following error: protoc failed: bitswap.v1.2.0.proto: No such file or directory
3
votes
1
answer
41
views
Error: "Did not find the benchmarking metadata" after building runtime for benchmarking
After upgrading our chain to polkadot 0.9.38 I managed to build the benchmarking using cargo build --release --features runtime-benchmarks but when I try to benchmark any pallet after the build I ...
5
votes
1
answer
36
views
__construct_runtime_integrity_test fails after upgrading to polkadot 0.9.38
After upgrading our chain to polkadot version 0.9.38 and run SKIP_WASM_BUILD= cargo test --all I get the following test error
'__construct_runtime_integrity_test::runtime_integrity_tests' panicked at ...
3
votes
1
answer
71
views
Problem deploying smart contract on rococo
I have been following the public documentation of polkadot API to deploy contract: https://polkadot.js.org/docs/api-contract/start/code
but I'm getting error Uncaught (in promise) TypeError: code.tx....
3
votes
1
answer
68
views
babe-worker failed after upgrade to 0.9.42
After upgrading to 0.9.42, we have ERROR tokio-runtime-worker sc_service::task_manager: Essential task babe-worker failed. Shutting down service. error starting the node using cargo run -- --dev. ...
3
votes
1
answer
70
views
error[E0405]: cannot find trait `Signature` in crate `signature`
I am currently upgrading our chain to polkadot-v0.9.38 but when I run the build I get the following error:
error[E0405]: cannot find trait `Signature` in crate `signature`
--> /home/albrayanov/....
2
votes
1
answer
53
views
Polkadot-JS not calling my contract properly
I used PolkadotJS to call a contract, when i did, it logged the status "in block", Turns out it never makes any state change. I used contracts-ui it worked, but with JS? Never. What can be ...
2
votes
1
answer
68
views
Polkadot multisig - LiquidityRestrictions error to initiate a call from an account with < 20 DOT
The Polkadot account 1vSN9CPVLXJWsY3JbdRU9KjAFFAx88yvEVpU1ayjnhSephy is a proxy, controlled by a multisig (13oHAjv9gNbdVKFk6uosaiyRAm2ybC48VnJ47Ss8F8pY7NgR).
All attempts to initiate an extrinsic with ...
0
votes
0
answers
281
views
Error: Service(Client(VersionInvalid("cannot deserialize module: UnknownOpcode(192)"))) [duplicate]
Link:
https://github.com/paritytech/substrate-contracts-node
https://use.ink/getting-started/running-substrate
When I try to run "substrate-contracts-node --dev" I get this error:
...
4
votes
1
answer
130
views
Parachain to Parachain XCM transfer 1010 bad signature error
Our team (Fearless Wallet) has recently faced an issue while trying making XCM transfers between parachains on Mobile clients. The odd thing is that the same extrinsic on Polkadot JS dApp works fine ...
4
votes
2
answers
42
views
DispatchError::Other(_) always being mapped to DispatchError::Other("")
I'm trying to pass some custom error messages to the frame_system::note_applied_extrinsic() but it seems to be ignoring my message and always using an empty string "".
Adding this test to ...
1
vote
2
answers
91
views
Token(CannotCreate) error on transferring asset to PalletId account
I'm new to Substrate and I'm creating a pallet in which the user can create contests by depositing a certain amount of assets. My idea is to send that amount to the PalletId account, but I'm having an ...
3
votes
1
answer
46
views
Substrate Node wont restart
We are running a substrate node in testing/development and the server ran out of disk space. We cleared up space by deleting the log files and now the node wont start.
Service(Client(RuntimeApiError(...
1
vote
0
answers
105
views
hyper::Error(Parse(Method))
The log output is as follows:
2023-03-06 06:12:54 ✨ Imported #2 (0xbbb2…9e44)
2023-03-06 06:12:54 Accepting new connection 1/6
2023-03-06 06:12:55 HTTP serve connection failed hyper::Error(Parse(...
1
vote
1
answer
53
views
Off-chain worker. Error submitting a transaction to the pool: InvalidTransaction::ExhaustsResources [duplicate]
Error submitting a transaction to the pool: Transaction pool error: Invalid transaction validity: InvalidTransaction::ExhaustsResources
It works fine in standalone but in parachain it fails.
Off chain ...
0
votes
1
answer
113
views
Error "StorageDepositLimitExhausted" occurs when trying to mint
Error "StorageDepositLimitExhausted" occurs when trying to mint
But I don't know why this error happens
The code is here
#![cfg_attr(not(feature = "std"), no_std)]
#![feature(...
0
votes
1
answer
202
views
1010: Invalid Transaction: Transaction would exhaust the block limits
How to specify limit weight for extrinsic?
6
votes
1
answer
378
views
Parachain missed blocks due to relay wrong announcement?
On February 20, 2023 around 22:08 UTC, Shiden block production has been hurt and almost stopped during 40 minutes.A lot of collators were missing blocks for no apparent reason.
Examples of blocks that ...
0
votes
0
answers
31
views
parity zombienet error with podman provider
I was trying to run the parity zombienet(v1.3.34) with podman (v3.4.2) but getting error like this. Can anyone tell me what is the issue? How can I run zombienet in my linux machine with podman?
0
votes
1
answer
22
views
Dependency Errors While Running Yarn On Ubuntu For Local Installation of Polkadot-JS/apps
I am attempting to compile and run polkadot-JS/apps on Ubuntu cloud server (Digital Ocean). I have Node.JS and yarn installed. While running "yarn" in the polkadot-JS/apps folder, I get a ...
0
votes
1
answer
50
views
How do we resolve the InvalidScheduleVersion error?
From the contracts pallet:
/// A new schedule must have a greater version than the current one.
InvalidScheduleVersion,
The context of this error is sending batch transactions from ...
1
vote
1
answer
108
views
Out of gas Error for Contract execution
#[ink(message)]
pub fn dummy_function(
&mut self,
value: u64,
) -> u64 {
debug_println!("inside user contract dummy_function");
return 45 * ...
0
votes
1
answer
29
views
What is the most standard pallet structure in Substrate?
I wonder if there is a structure in pallets, which other projects should follow.
We have the following elements:
< Config trait >
< Types >
< Storage >
< Genesis info>
< ...
2
votes
1
answer
36
views
Ongoing error closing council motions in Polkadot JS (No execution details available for this proposal)
Ongoing problem with closing council motions related to treasury proposals. Here is what we have tried so far.
(1) At first, running an August 2022 version of the substrate kitchen sink node, the ...
5
votes
2
answers
712
views
smart contract function call error
I am deploying flipper ink! smart contract to shibuya, but when I tried to read the value using get() I am getting this error:
{ Err: { Module: { index: 70 error: 0x02000000 } } }
I also tried ...
2
votes
1
answer
33
views
how to solve multiple `get_dispatch_info` found error?
I'm using get_dispatch_info() function.earlier it's working fine but after new release I'm not able to use it.
let dispatch_info = call.get_dispatch_info();
dispatch_info.weight.saturating_add(...
1
vote
2
answers
138
views
Can't get extrinsic error from balances.sendTransfer extrinsic in polkadotJSAPI
I am doing error handling in an app using polkadotJSAPI 7.13.1
There are two ways to fetch info if an extrinsic succeeds or fails, the first one is via dispatchError in signAndSend like so
...
0
votes
1
answer
66
views
Contract not compiling. "Failed to resolve: use of undeclared type `SecretKey`
Here are the steps i have done:
cargo contract new flipper
in contract code i added these lines of code:
use blst::min_pk::SecretKey; after #![cfg_attr(not(feature = "std"), no_std)]
&...
0
votes
1
answer
172
views
Extracting error from system.ExtrinsicFailed
I have a call to an extrinsic (in a Typescript/RxJS client) that is failing but I want to be able to catch the error that the extrinsic is throwing and not just that it failed.
const chainEvents: ...
2
votes
1
answer
102
views
@polkadot/api suppress output messages
I have an issue regarding displaying errors. For errors, the logger @polkadot/api uses will write to console even when the error is caught and handled. I am handling and displaying the messages a ...