Thank you for file. The URL is indeed correct and I see the error messages in the logs. Unfortunately, I can't figure what is wrong. "+CMS ERROR: 500" literally means "unknown error". I've looked up common reasons why it could occur, but none of them fit your case (since you can send messages via the WebUI).
I know this sounds a bit primitive, but perhaps you could try factory reset?