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.

409 Error when attempting to edit Profile Highlight Color

See original GitHub issue

If you attempt to edit the Highlight Color on your Profile, you get an error: Web error: 409 (Conflict) on PATCH of <https://khoward5.dev.inrupt.net/profile/card>

To Replicate

  1. Log into a dev.inrupt.net Pod.
  2. “Edit your profile”.
  3. Edit the Highlight Color.

Expected Behaviour

  1. The Highlight color is updated to the selected color.

Actual Behaviour

  1. Error Web error: 409 (Conflict) on PATCH of <https://khoward5.dev.inrupt.net/profile/card> is displayed.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
timblcommented, Aug 28, 2019

The bug is in the logic of handling of the logic of a field in the form system. Why would it be there? The line may have been put there in the past when the system used PUT to save back the edited data. In that case, one can imagine it working so that is the data was save, that all values with defaults would be set to those defaults. (Which may or nor have been a good idea!). But in fact the code (now) uses PATCH and sends the diffs using update(), and when you do that it is important that the local quad store is in sync with the web.

1reaction
timblcommented, Aug 28, 2019

I would suggest that the “change color” (and other edit) routines should simply check whether there’s a stored value for the field before it tries to delete it, try to delete the stored value if present, and then write the new color value (which will then succeed, whether or not there was a previously stored value).

That’s basically what the form fields do. They first read the file, and set the UI to the set value if there is one, or otherwise the default in the form, if any. If the user sets anything, then the update function deleted the existing to be deleted statements (ds) before it adds in the new ones (is). ((The tristate checkbox is more complicated in that user can opt for saying true or false or not saying anything.))

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix the “409 Conflict” Error (5 Methods) - Kinsta
1. Check the Requested URL ... As we mentioned earlier, the “409 Conflict” error can arise from incorrect information in a PUT request....
Read more >
HTTP 409 Conflict errors when updating profiles
Our education domain is receiving intermittent HTTP 409 Conflict errors when updating user profiles, and the profiles themselves are not updated.
Read more >
Error status 409 while updating profile - Stack Overflow
After reading this I saw that 409 response status error was happening because contact/profile entry was being updated from two sources, so the...
Read more >
Can't change border color in "Format Cells" window in
In my business I routinely have to change the type and color of cell borders ... I always get a "Font size must...
Read more >
Error code: 409 - Google Classroom Community
Error code: 409. I go to classroom and try to download a photo one of my friends posted and I get the 409...
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