Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPリクエストのparams/data引数の指定間違いに警告を表示する #43

Closed
1 task done
MtkN1 opened this issue May 25, 2021 · 0 comments
Closed
1 task done
Assignees
Labels
enhancement New feature or request

Comments

@MtkN1
Copy link
Member

MtkN1 commented May 25, 2021

課題

  • HTTPリクエスト及びaiohttpライブラリの仕様上...
    • GETメソッドの場合はparams引数でクエリ文字列を指定する
    • POSTメソッドの場合はdata引数にボディを指定する
  • しかしコードをコピペしてgetpostを書き換えた時などに、paramsdataを書き換え忘れるケースがあってリクエスト失敗になる
  • しかも殆どの場合はHTTP応答からして上記原因であることが判別しにくい

実装

  • GETなのにdataを指定した、GET以外なのにparamsを指定した場合、WARNINGを表示する

チェックリスト

  • 実装
@MtkN1 MtkN1 added the enhancement New feature or request label May 25, 2021
@MtkN1 MtkN1 self-assigned this May 25, 2021
@MtkN1 MtkN1 closed this as completed Jun 13, 2021
MtkN1 added a commit that referenced this issue Jun 13, 2021
✨v0.4.0リリース

✅ GMOコインのWebSocket API制限により複数購読ができない #50
✅ BybitのDataStoreクラスにタイムスタンプを追加する #47
✅ ws_connectのハンドラ未指定の場合はprintハンドラを選択する #46
✅ Binanceで認証を利用するとPublic APIがパラメーターエラーとなる #44
✅ HTTPリクエストのparams/data引数の指定間違いに警告を表示する #43
✅ Binance Futures USDⓈ-MのDataStoreを実装する #20

✅ DataStore サブクラスインスタンス取得時の型エラーを解決 #55
✅ GitHub Actions の matrix 実行で fail-fast を無効化 #54
✅ GitHub Actions による自動テスト実行 #49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant