Users are reporting that the Akismet plugin returns a “Sorry, an error has occured.” message when confirming a post as not spam, even though the action is successfully logged and the post is removed from the queue. Sujan provides screenshots showing the error occurs after clicking “Not Spam,” despite the post being correctly marked as such in the logs. zogstrip suggests a possible race condition, but Sujan confirms the issue persists even when they are the one handling it. Further investigation reveals a 500 error in the network request for the “allow” action, with the log confirming the post was marked as not spam. LeoMcA confirms experiencing the same issue, and eviltrout identifies it as a Rails 5 regression, pointing to a fix in the discourse-akismet repository. tobiaseigen confirms the issue has been observed recently and is glad it’s been resolved.
Chrome Dev Tools Network panel screenshot for another session. I go to /admin/plugins/akismet in the first request. Later you see allow which is /admin/plugins/akismet/allow that already responds with an error 500: