HTTP method PATCH not supported

オープン
#1,316 コメント 4 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
java
領域
networking

調査の方向性

HttpRequestクラスのtransport.buildRequest(requestMethod, urlString)呼び出しから開始し、記載されたJava 8環境でgoogle-http-client 1.38.1を使用してPATCHリクエストを再現してください。transportがリクエストメソッドをどのように処理するかを追跡し、報告されたIllegalArgumentExceptionなしでPATCHリクエストを構築できることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

priority: p2 type: feature request
Environment details
  • OS:Linux
  • Java version:1.8
  • google-http-java-client version: 1.38.1
Steps to reproduce

Hello everyone,

I am trying to make an http patch call with the google-http-client-1.38.1 library, but it is returning an error. I have no problem making HTTP GET, POST, or PUT calls.

I have debugged the library files and I have seen that the error occurs in the httpRequest class when it is going to build the request
LowLevelHttpRequest lowLevelHttpRequest = transport.buildRequest (requestMethod, urlString)
I build the request with the following format
val req = httpRequestFactory .buildRequest( "PATCH", GenericUrl(URL), HTTP_CONTENT) .setThrowExceptionOnExecuteError(false) .setLoggingEnabled(true) .setHeaders(HTTP_HEADERES)

Stacktrace

java.lang.IllegalArgumentException: HTTP method PATCH not supported

External references such as API reference guides used

I am using the google-http-client-1.38.1 through google-auth-library-oauth2-http 0.24.0

Thanks!

主要言語
Java
スター
1.4k
フォーク
473
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/google-http-java-client のほかの issue

googleapis/google-http-java-client の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。