Users reported an issue granting badges in Discourse, encountering a vague “Sorry, an error has occurred” message. dylanh724 noted the problem persisted even after upgrading, despite no special badge configuration. sam clarified that the “reason” field expects a link to a post or topic, not free text like “Backer!”, and suggested improving the error message. dylanh724 confirmed the workaround — leaving the field blank — worked, and proposed UX improvements: renaming “reason” to “Topic URL” and replacing the generic error with “Invalid Topic URL”. A small UI hint was also noted as easy to miss. saurabhp referenced a prior fix to validate the reason field and submitted a PR to surface clearer errors to users. The issue was later confirmed resolved saurabhp, with the backend now rejecting invalid reasons and displaying appropriate feedback. sam invited community contributions to further improve error messaging. notriddle noted they couldn’t reproduce the error, suggesting inconsistent behavior across instances.
I used to be able to grant badges fine. Tons of people have this very badge – I tried to grant a random badge to myself, too, and still getting a vague error.
Nothing special about this badge - no sql or anything. It’s just a badge I manually add.