KoalaBotUK / KoalaBot

🐨 All in one Discord bot for student societies & communities
https://KoalaBot.uk
MIT License
11 stars 8 forks source link

RFR API Missing error handling #400

Closed VottonDev closed 1 year ago

VottonDev commented 1 year ago

Describe the bug

If I do the following POST request on Postman, I get HTTP error 500: {{baseUrl}}/react-for-role/message?message_id=1088971941928521850&guild_id=863362407183286302&channel_id=863363072231997442

Error: 500 Internal Server Error Server got itself in trouble

Image example: image

To Reproduce

Described in the bug section.

Expected behaviour

Would give a more informative error such as the input data producing a duplicate, the input data being wrong or if something is missing from the input, rather than a HTTP error 500.

Screenshots

In the bug section.

Additional context

No response