hyperliquid-dex/hyperliquid-python-sdk: Issues opened — API._handle_exception raises `KeyError` instead of `ClientError` on some 4xx responses
Canton Signal Feed (Nov 12, 2026 · 6:39 PM ET)
## Summary On a 4xx response with a JSON body, `_handle_exception` does `err.get("data")` then unconditionally accesses `err["code"]` / `err["msg"]`. If the JSON body has neither key (e.g. `{"error": "something"}`), the caller gets `KeyError: 'code'` instead of the documented `ClientError`, so a bot's `except ClientError` error handling never runs and the process can crash on an error path. ## Rep
Loading repository facts…
Sources, Attribution & Disclaimer
- Published
- Nov 12, 2026 · 11:39 PM UTC
- Source
- github.com
- Publisher
- github.com
Full attribution under the Digital Millennium Copyright Act (DMCA), 17 U.S.C. § 512: this signal is published by Canton Signals, owned and published by Infiniti Markets LLC, and summarizes the reporting of the publishers named above, links to their original work where an address is supplied, and reproduces no protected expression beyond brief factual reference and in-line attribution (“according to github.com”). All rights in the underlying reporting remain with the publishers listed; nothing here implies endorsement by or affiliation with them. Rights holders may request correction, update or removal at Infiniiti@w3ai.io.
Disclaimer: For information only; not investment, legal or tax advice. Canton Signals and Infiniti Markets LLC are independent and not affiliated with the Global Synchronizer Foundation or Digital Asset. Check the original sources before relying on any figure.