Skip to content

Index error with Testnet API #273

Description

@pat-mok

I kept receiving index out of bound error when trying to get to info end point with testnet. I checked using mainnet and no error. So the error is with testnet. Was there new token added to mainnet not yet reflected in testnet?

Activity

  1. xdmaury commented on Mar 6, 2026

    @xdmaury

    The same error is happening with me:

    /usr/local/lib/python3.12/dist-packages/hyperliquid/info.py in __init__(self, base_url, skip_ws, meta, spot_meta, perp_dexs, timeout)
         46             self.name_to_coin[spot_info["name"]] = spot_info["name"]
         47             base, quote = spot_info["tokens"]
    ---> 48             base_info = spot_meta["tokens"][base]
         49             quote_info = spot_meta["tokens"][quote]
         50             self.asset_to_sz_decimals[asset] = base_info["szDecimals"]
    
    IndexError: list index out of range
  2. jieinchina commented on Mar 14, 2026

    @jieinchina

    yeah, list index out of range issue also happens to Exchange, now the testnet is broken, plz fix it asap! i'm curious, the changes hasn't tested before online?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions