Skip to content

Instantly share code, notes, and snippets.

@niklasp
Created August 28, 2023 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niklasp/d86f197297156b2815224beee5380021 to your computer and use it in GitHub Desktop.
Save niklasp/d86f197297156b2815224beee5380021 to your computer and use it in GitHub Desktop.
wasm trap
RPC-CORE: call(method: Text, data: Bytes, at?: BlockHash): Bytes:: -32000: Client error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
WASM backtrace:
error while executing at wasm backtrace:
0: 0x4261a - <unknown>!rust_begin_unwind
1: 0x4a60 - <unknown>!core::panicking::panic_fmt::he4489d678d6570d5
2: 0xafe88 - <unknown>!TransactionPaymentApi_query_info
Trace: RpcError: -32000: Client error: Execution failed: Execution aborted due to trap: wasm trap: wasm `unreachable` instruction executed
WASM backtrace:
error while executing at wasm backtrace:
0: 0x4261a - <unknown>!rust_begin_unwind
1: 0x4a60 - <unknown>!core::panicking::panic_fmt::he4489d678d6570d5
2: 0xafe88 - <unknown>!TransactionPaymentApi_query_info
at checkError (file:///Users/no/code/proof-of-chaos/node_modules/@polkadot/rpc-provider/coder/index.js:19:15)
at RpcCoder.decodeResponse (file:///Users/no/code/proof-of-chaos/node_modules/@polkadot/rpc-provider/coder/index.js:37:9)
at WsProvider.__internal__onSocketMessageResult (file:///Users/no/code/proof-of-chaos/node_modules/@polkadot/rpc-provider/ws/index.js:129:55)
at WsProvider.__internal__onSocketMessage (file:///Users/no/code/proof-of-chaos/node_modules/@polkadot/rpc-provider/ws/index.js:118:24)
at WebSocket.onMessage (/Users/no/code/proof-of-chaos/node_modules/next/dist/compiled/ws/index.js:1:3358)
at WebSocket.emit (node:events:513:28)
at Receiver.receiverOnMessage (/Users/no/code/proof-of-chaos/node_modules/next/dist/compiled/ws/index.js:1:43674)
at Receiver.emit (node:events:513:28)
at Receiver.dataMessage (/Users/no/code/proof-of-chaos/node_modules/next/dist/compiled/ws/index.js:1:18576)
at Receiver.getData (/Users/no/code/proof-of-chaos/node_modules/next/dist/compiled/ws/index.js:1:17671)
at Receiver.startLoop (/Users/no/code/proof-of-chaos/node_modules/next/dist/compiled/ws/index.js:1:14334)
at Receiver._write (/Users/no/code/proof-of-chaos/node_modules/next/dist/compiled/ws/index.js:1:13674)
at writeOrBuffer (node:internal/streams/writable:392:12)
at _write (node:internal/streams/writable:333:10)
at Writable.write (node:internal/streams/writable:337:10)
at TLSSocket.socketOnData (/Users/no/code/proof-of-chaos/node_modules/next/dist/compiled/ws/index.js:1:44508)
at TLSSocket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
at Readable.push (node:internal/streams/readable:234:10)
at TLSWrap.onStreamRead (node:internal/stream_base_commons:190:23)
at handler (webpack-internal:///(api)/./src/pages/api/create-rewards-calls.ts:69:17)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment