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.

PATCH is allowed as a method, succeeds but doesn't do anything

See original GitHub issue

I tried using the PATCH method to update fields on the user model, i.e.

PATCH /api/auth/me HTTP1.1

{
  "email": "test@example.com"
}

The response to this query is then the user object with HTTP status 200 but nothing has changed, i.e. a subsequent GET request returns the old value for email.

Either PATCH should immediately return 405 or (preferably) it should actually persist the values you pass.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
pszpetkowskicommented, Dec 11, 2017

Alright, thanks for the input. I’ll look into the issue in more depth this friday.

0reactions
zefciucommented, Jan 22, 2019

This ticket received last input more than a year ago and it is very likely that the problem was already solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Power Apps Patch Function Error Handling - Matthew Devaney
Error Handling With The ERRORS Function. We only want the Success Screen to show if the new record was successfully created in SharePoint....
Read more >
Solved: Check that a ForAll Patch was successful
Solved: Hi, I have an app that patches data from a collection into the CDS. I accomplished that by using a button control....
Read more >
Git apply patch fails silently (no errors but nothing happens)
I was pulling my hair out trying to understand why git returns success (status 0) but does not apply patches when I try...
Read more >
Power Apps Errors Function when using Patch and other data ...
... with your data source thanks to the PowerApps Error function.Get Power Apps and Power Auto... ... Your browser can 't play this...
Read more >
PATCH - HTTP - MDN Web Docs
The HTTP PATCH request method applies partial modifications to a ... a PUT will naturally overwrite it (since it overwrites everything), but ...
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