Previously we did not use invalid_data for serde errors, making it harder to understand errors when the client sends malformed data to the server.