Can't remove status from the timeline
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): f97f305d
- Elixir version (
elixir -v
for from source installations, N/A for OTP): 1.9.4 - Operating system: docker image based on elixir:1.9-alpine
- PostgreSQL version (
psql -V
): 9.6.17
Bug description
Recently I have tried to remove a status from the timeline, but after refreshing the page in the browser it appears again. I have checked developers console in Firefox and I found that the server return status 500 and in docker logs I have found the next message:
21:37:57.327 request_id=FouibGwB1NA-MOkAKzFx [error] Internal server error: %FunctionClauseError{args: nil, arity: 1, clauses: nil, function: :parse, kind: nil, module: URI}
And here is example HTTP query:
curl 'https://social.net.ua/api/v1/statuses/A8cJn8tZsAq6eUbSUK' -X DELETE -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:89.0) Gecko/20100101 Firefox/89.0' -H 'Accept: */*' -H 'Accept-Language: uk,en-US;q=0.7,en;q=0.3' --compressed -H 'Referer: https://social.net.ua/main/all' -H 'Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -H 'Origin: https://social.net.ua' -H 'DNT: 1' -H 'Connection: keep-alive' -H 'Cookie: __Host-pleroma_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; Admin-Token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX; Auth-Host=social.net.ua' -H 'TE: Trailers'
Then I have tried to remove status from other accounts and in most cases I have got response with http status 500, only in few cases there were http status 200.