Skip to content

Invalid parameters: Expected from 0 to 1 parameters #104

@WALL-E

Description

@WALL-E

When I was testing the jupiter-swap-api, I called the /swap-instructions endpoint and encountered the following error. However, I don't get any errors when I use the Triton service directly. Below is our software version information:

  • Solana Version: 2.2.14
  • yellowstone-grpc: v6.1.0+solana.2.2.14
  • jupiter-swap-api: 6.0.49
252389 2025-06-13T12:54:08.234135Z DEBUG request{method=POST uri=/swap-instructions version=HTTP/1.0}: hyper::client::pool: pooling idle connection for ("http", *.*.*.*:8899)
252390 2025-06-13T12:54:08.234168Z ERROR request{method=POST uri=/swap-instructions version=HTTP/1.0}: jupiter_common::client_extension: RPC response error -32602: Invalid parameters: Expected from 0 to 1 parameters.;
252391 2025-06-13T12:54:08.234219Z DEBUG request{method=POST uri=/swap-instructions version=HTTP/1.0}: tower_http::trace::on_response: finished processing request latency=13 ms status=500
252392 2025-06-13T12:54:08.234233Z ERROR request{method=POST uri=/swap-instructions version=HTTP/1.0}: tower_http::trace::on_failure: response failed classification=Status code: 500 Internal Server Error latency=13 ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions