[SMUSH] Error posting to API: 500 Internal Server Error

When I try to smush PNG images on my site I get the following error:
Error posting to API: 500 Internal Server Error During the chat we tried many things but nothing worked.