我正在尝试执行此 AJAX 帖子,但由于某种原因,我收到了服务器 500 错误。
$.ajax({
url: '.../PublicAPI.svc/Register',
type: 'POST',
dataType: 'json',
async: false,
//contentType: 'application/json; charset=utf-8',
data: '{ "ApiKey": "'+$('#ApiKey').val()+'", "LanguageId": "'+$('#LanguageId').val()+'", "Password": "'+$('#Password').val()+'","Username": "'+$('#Email').val()+'" }',
success: function( response, textStatus, jqXHR ) {
console.log('success');
console.log(response);
},
error: function( jqXHR, textStatus, errorThrown ) {
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
任何机构都可以帮助我找出问题所在吗?