binance / binance/binance-sbe-java-sample-app
java.lang.IllegalStateException for wss place order
- 主要言語
- Java
- スター
- 14
- フォーク
- 9
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
there's a mismatch between the expected template ID in your decoder and the template ID in the message you received. Your decoder is expecting a template ID of 103, as indicated in the ExchangeInfoResponseDecoder class, but the received message has a template ID of 50.
echo '{"id":"93fb61ef-89f8-4d6e-b022-4f035a3fadad","method":"exchangeInfo","params":{}}' | ./tools/websocket_send.py 'wss://[ws-api.binance.com:443/ws-api/v3?responseFormat=sbe&sbeSchemaId=1&sbeSchemaVersion=0](http://ws-api.binance.com:443/ws-api/v3?responseFormat=sbe&sbeSchemaId=1&sbeSchemaVersion=0)' | java -jar ./target/sbe-sample-app-1.0-SNAPSHOT.jar -
Exception in thread "main" java.lang.IllegalStateException: Invalid TEMPLATE_ID: 50
at spot_sbe.ExchangeInfoResponseDecoder.wrapAndApplyHeader(ExchangeInfoResponseDecoder.java:94)
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
報告された exchangeInfo コマンドを tools/websocket_send.py とサンプルアプリケーションを使って実行し、その後 wrapAndApplyHeader にある ExchangeInfoResponseDecoder.java を調査します。デコーダーが想定するテンプレート ID と、受信した SBE メッセージおよびスキーマの詳細を比較します。exchangeInfo レスポンスが Invalid TEMPLATE_ID 例外なしでデコードされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 42/100