Skip to content

[Bug] "RPC response exceeded the transport limit" when fetching large model catalog #1

Closed

Description

@maisterPernat

Describe the bug
When attempting to change or load models in the web UI with multiple model providers configured (e.g., OpenRouter, Anthropic, Ollama, etc.), the model picker fails with:
Model error. RPC response exceeded the transport limit

Although ompweb supports RPC Protocol v2 chunk reassembly during live sessions, it appears that the get_available_models query (or the initial process used to fetch the model list) is dispatched before Protocol v2 negotiation completes, or is executed over an un-negotiated Protocol v1 transport. Because the catalog response exceeds the 1 MiB v1 single-frame limit, OMP drops the payload.

To reproduce
Steps to reproduce the behavior:

  1. Configure OMP with multiple providers or a large model catalog (e.g., OpenRouter with full catalog enabled).
  2. Start ompweb (npx @kahme247/ompweb@latest or ompweb).
  3. Open the web UI in a browser.
  4. Attempt to open the model selector / change models.
  5. See error: Model error. RPC response exceeded the transport limit.

Expected behavior
ompweb should complete the RPC v2 handshake (negotiate_protocol: 2) before requesting get_available_models, or properly handle chunk reassembly for catalog queries so that model lists larger than 1 MiB load successfully without transport errors.

Environment

  • OS: Windows 11
  • Node.js / Runtime: Bun v1.3.14
  • omp version: 17.3.4
  • omp-web version: 0.3.1

Additional context

  • Temporarily patching the hardcoded 1 MiB (1048576) transport limit constant in the installed OMP global bundle to 10485760 (10 MiB) immediately resolves the issue, confirming that the catalog query is hitting OMP's legacy Protocol v1 single-frame ceiling rather than utilizing Protocol v2 chunked streaming.

Activity

  1. added
    bug
    on Aug 15, 2026
  2. kahme247 commented on Aug 17, 2026

    @kahme247
    Collaborator

    Thanks for the clear report and workaround — it helped confirm the model catalog was still using the v1 transport. The fix is in PR #3 and makes the utility process negotiate RPC v2 before loading models.

  3. added a commit that references this issue on Aug 17, 2026
    4895a39
  4. btajuddin commented on Aug 18, 2026

    @btajuddin

    @kahme247 Could you please publish this fix? I don't think it's in 0.3.2, and I could really use it.

  5. kahme247 commented on Aug 22, 2026

    @kahme247
    Collaborator

    @btajuddin its already in 0.3.3 should have incuded it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions