Hello,
HTTP 500 means the APP server has meet an unexpected error. Usually this is because the client has send an unexpected request and cause the server fail. But you need to check the server's log to find out the detail reason.
What I could thought is correlation and encoding. Generally, you need to check: Is the POST request really 'valid' to your server in the context?
Regards,
Bingle