Vana SDK - v2.2.2
    Preparing search index...

    Class NetworkError

    Thrown when network communication fails during API calls or blockchain interactions.

    This error encompasses network connectivity issues, API unavailability, timeout errors, and CORS restrictions. It's commonly encountered during IPFS operations, subgraph queries, or RPC calls.

    Recovery strategies:

    • Check network connectivity
    • Retry with exponential backoff
    • Verify API endpoints are accessible
    • Switch to alternative network providers or gateways
    try {
    const files = await vana.data.getUserFiles({ owner: '0x...' });
    } catch (error) {
    if (error instanceof NetworkError) {
    // Implement retry with exponential backoff
    await retryWithBackoff(() => vana.data.getUserFiles({ owner: '0x...' }));
    }
    }

    Hierarchy (View Summary)