espresso-cash-public icon indicating copy to clipboard operation
espresso-cash-public copied to clipboard

TimeoutException after 0:00:30.000000: Future not completed

Open sunsetjesus opened this issue 2 years ago • 1 comments

createAssociatedTokenAccount future timesout

To Reproduce Steps to reproduce the behavior:

await _solanaClient.createAssociatedTokenAccount(
          owner: keyPair.publicKey, mint: mintPubKey, funder: keyPair);

Expected behavior Future gets resolved Additional context rpc url - https://api.devnet.solana.com solana: ^0.23.0+1 Flutter 2.10.4 • channel stable • https://github.com/flutter/flutter.git Dart 2.16.2

sunsetjesus avatar May 13 '22 21:05 sunsetjesus

You can create a SolanaClient with a custom timeout value. Try to use some bigger value if it works for you.

ookami-kb avatar May 14 '22 18:05 ookami-kb