Echo and error message
Change the curl options since that seems to be what's failing