You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Neenu1995
added
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Mar 12, 2021
elharo
added
feat
and removed
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
labels
Apr 29, 2021
Environment details
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!
The text was updated successfully, but these errors were encountered: