0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

bitFlyer Lightning エラーコード集

Posted at

bitFlyer Lightning エラーコード集

bitFlyer LightningのAPIを叩いていて発生したエラーコードとその対応策をまとめる

  1. {"status":-100,"error_message":"Invalid product","data":null}

  【原因】リクエストヘッダにコンテンツタイプの指定なし

  privateAPIを利用する際、リクエストボディにJSON形式の値を詰めると思うが、その値がどのような形式かを明示的に指定してやる必要がある

connection = (HttpURLConnection) url.openConnection();
(中略)
connection.setRequestProperty("Content-Type", "application/json; charset=utf-8");
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?