Skip to content

Rust wallet network command hits HTML 404 from /network/info #7094

Description

@pqmfei

Summary

rtc-wallet network cannot read live RustChain network metadata from rustchain.org because the Rust wallet client hardcodes GET /network/info, but the production site currently returns nginx's HTML 404 for that path.

Live repro

curl -sk -D - https://rustchain.org/network/info -o -

Actual response observed:

HTTP/1.1 404 Not Found
Content-Type: text/html
Server: nginx

The response body is nginx HTML, not wallet-consumable JSON.

Client contract

The Rust wallet calls this route directly:

  • rustchain-wallet/src/client.rs: get_network_info() builds {api_url}/network/info
  • rustchain-wallet/src/bin/rtc_wallet.rs: rtc-wallet network calls client.get_network_info()

The client expects JSON compatible with NetworkInfo: chain_id, network, block_height, peer_count, min_fee, and version.

Expected behavior

https://rustchain.org/network/info should be proxied to the node and return JSON network metadata so the Rust wallet network command works against the default public API URL.

Root cause

The Flask node exposes adjacent status/stat APIs, but there is no /network/info route. The production nginx config also has explicit proxy locations for selected node routes and then falls through to static-site handling, so /network/info currently never reaches the node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is neededtriagedReviewed and categorized

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions