Connect server success, but response is 500 error