Plug.Parser will raise undo a bunch of conditions that cannot be considered unexpected. I find this problematic because bad user input should be considered the norm. It’s an ops pain because it generates a bunch of errors that aren’t actionable nor particularly easy to filter
As an example, this will crash:
echo -e '\xf0\x28\x8c\xbc' | curl -X POST -H 'Content-Type: application/json' --data-binary @- --url 'http://localhost:5719'
I feel like my options are: 1) write my own parsers, 2) try to filter out the errors in our error ingestion (difficult because this leads to multiple lines being printed) 3) write my own error handling plug that does not re-throw these exceptions
Curious if anyone else is dealing with this?