osmcha-frontend icon indicating copy to clipboard operation
osmcha-frontend copied to clipboard

Fails to remove user from watchlist

Open tguen opened this issue 4 years ago • 3 comments

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.

Screenshot_20210505_230534

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 ?

  1. click Remove button
  2. reload page
  3. user is still on list

Please tell us about your environment:

Firefox 88.0

tguen avatar May 06 '21 06:05 tguen

@tguen it seems like the issue is resolved.

Dimitar5555 avatar Dec 10 '22 15:12 Dimitar5555

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.

tguen avatar Dec 11 '22 20:12 tguen

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.

tguen avatar Dec 12 '22 07:12 tguen