osmcha-frontend
osmcha-frontend copied to clipboard
Fails to remove user from watchlist
I'm submitting a bug report
Brief Description
Attempting to remove a user from the watchlist fails.
What is the current behaviour, (attach relevant screenshots) ?
At https://osmcha.org/watchlist, when I click the Remove button on a user in the list, I get the error message "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data". The user disappears from the list, but reappears after reloading the page.

What is the expected behaviour ?
No error message, user is permanently removed from watchlist.
When does this occur ?
Every time I click the Remove button
How do we replicate the issue ?
- click Remove button
- reload page
- user is still on list
Please tell us about your environment:
Firefox 88.0
@tguen it seems like the issue is resolved.
No, the issue still occurs, although not every time. I just tried to remove about a dozen users, but half of them persist. When I try to remove myself, the page sends a DELETE request to https://osmcha.org/api/v1/blacklisted-users/tguen/ which returns 404.
On the watchlist, users are shown as "name (uid)" where the uid is either an integer or the same as their name. This issue appears to only occur in the latter case.