Status 500 for notifications

When attempting to reach https://www.openstreetmap.org/notifications I get a 500 response.
This did not happen until a week or so ago (~25-27.08), as I had previously successfully used that endpoint for the 2 previous months.

This is a screenshot of the page during the error

There seem to be no other errors in the console other than the failed response.

This problem persists across devices and networks.

are you using unmodified browser? If yes I would likely raise it at GitHub - openstreetmap/openstreetmap-website: The Rails application that powers OpenStreetMap · GitHub

maybe you have something weird in your notifications? (like message from deleted account? Something hidden by DWG?)

Is OpenStreetMap showing older ones working for you?

You can try to change number

Well with it I don’t get 500, but I get no notifications.

In reality there should be some.

Changing the before query parameter to lower values yields the same result and if I set it to really high, say 1000000, I again get status 500.

I had already tested it with extensions turned off, so that is not the issue for the status 500. Testing here with them off still results in empty notifications.

I’ve tracked down the error and opened Exception rendering follower notification for removed friendship · Issue #7354 · openstreetmap/openstreetmap-website · GitHub for it.

Interesting, however there is no evident way to see whoever is following you on the website, only the users you follow (on the /dashboard endpoint), so I am not sure if I can help you with testing later on.

How did you manage to figure out this is the issue?

By examining the logs…

I have the same error, I didn’t have this until some days ago.

My User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36

The problem magically disappeared despite the fact that the PR in the github issue has not been merged.

maybe it is on the second age of notifications now, after you got more of them? I bet that if you paginate (use “next page of notifications” few times) you will get 500 error again

or the person followed you again so “unfollow you again then the friend record no longer exists” stops applying

or something else happened

(I can follow and unfollow you if you want, though this should bring 500 error back)

I still have the problem :pensive_face:

On pagination I get an empty notifications page with “Content missing”. This is similar to the result od the query with before=50000.

The difference is there the text “You have no notifications at the moment” appears.