GopeedLab/gopeed · error · WebViewRpcException

UNKNOWN_METHOD

UNKNOWN_METHOD

Error message

unknown method: $method

What it means

Error "unknown method: $method" thrown in GopeedLab/gopeed.

Source

Thrown at ui/flutter/lib/app/rpc/webview_rpc_service.dart:177

          (_list(params, 'args') ?? const []),
        );
      case 'page.getCookies':
        return _page(params).getCookies();
      case 'page.setCookie':
        await _page(params).setCookie(_cookie(params));
        return {};
      case 'page.deleteCookie':
        await _page(params).deleteCookie(_cookie(params));
        return {};
      case 'page.clearCookies':
        await _page(params).clearCookies();
        return {};
      case 'page.close':
        await _closePage(_pageId(params));
        return {};
      default:
        throw WebViewRpcException(
          code: 'UNKNOWN_METHOD',
          message: 'unknown method: $method',
        );
    }
  }

  Future<Map<String, dynamic>> _openPage(Map<String, dynamic> params) async {
    final pageId = 'page-${++_pageSeq}';
    final session = WebViewRpcPageSession(
      pageId: pageId,
      cookieManager: _cookieManager,
      headless: params['headless'] as bool? ?? false,
      debug: params['debug'] as bool? ?? false,
      title: params['title'] as String? ?? '',
      width: (params['width'] as num?)?.toInt() ?? 1280,
      height: (params['height'] as num?)?.toInt() ?? 800,
      userAgent: params['userAgent'] as String? ?? '',
    );
    _pagesById[pageId] = session;

View on GitHub (pinned to 7b7327ffb3)

When it happens

Trigger: Thrown at ui/flutter/lib/app/rpc/webview_rpc_service.dart:177 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of GopeedLab/gopeed@7b7327ffb3 (2026-08-16). Data as JSON: /api/errors/d76017f3c4b25399. Report an issue: GitHub.