question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid HTTP method: PATCH

See original GitHub issue

Invalid HTTP method: PATCH executing PATCH https://…

@RequestLine("PATCH /v1/api/customers?customerId=1)

How can I solve this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
sivaprakashtcommented, Apr 17, 2020

I have come across this issue recently. The Default client (Default implements Client) is using HttpsURLConnection in which the valid HTTP methods are private static final String[] methods = { "GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE" }; PATCH is not in the list, results the exception. Feign had nothing to with the issue.

I am using ApacheHttpClient for PATCH Requests now.

0reactions
kdavisk6commented, Dec 29, 2020

Created #1348 for the HttpClient enhancement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HttpURLConnection Invalid HTTP method: PATCH
When I try to use a non-standard HTTP Method like PATCH with URLConnection: HttpURLConnection ...
Read more >
Invalid HTTP Method: PATCH | Javarevisited - Medium
Frustrating right? When Java tells you that a valid HTTP method PATCH is not valid, as a REST API developer, your eyebrow muscles...
Read more >
Invalid HTTP method: PATCH when calling Rest Webservices ...
I call a webservice implementing HTTP patch from the Microprofile Rest Client. When using the MP Rest Client I get the following error:...
Read more >
Solved: HubSpot Community - Invalid HTTP method: PATCH
Solved: Hi, I am trying to update a company but I get the error "Invalid HTTP method: PATCH" as soon as I set...
Read more >
HttpURLConnection: Invalid HTTP method PATCH
Hi, I am working on one ADF application(Using Jdeveloper 11.1.1.7.0, JDK 1.7.0.80), where I am calling one REST API patch operation using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found