[Bug] 500 server error on invalid API requests #764
Labels
Experience: Backend
good first issue
A good issue for anyone new to open source to work on
help wanted
We'd love to have help working on this issue
Priority: Critical
Type: Bug
I've been receiving 1-3 emails from someone trying to hit
https://codethesaur.us/api/shared/config/config.env/
a couple of times a day. I'm not sure why they are, but the server is reacting in a way I wouldn't be expecting.(One thought might be turn off the API until we publish more about it, but for now probably properly fixing the error is important too.)
Expected Behavior
The server should react with a proper 400-level error message for an invalid
/api
requestActual Behavior
The server reacts with a 500 error and the regular home page
Steps to Reproduce the Problem
(using localhost so @geekygirlsarah doesn't continue to get hit with emails by people doing this on the production server)
Additional Info
Stack trace:
The text was updated successfully, but these errors were encountered: