接收500内部服务器错误 [英] Receiving 500 internal server error
本文介绍了接收500内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在为自定义列表生成元数据时收到500个内部服务器错误.到目前为止,我们已经在公司"和个人"这两个自定义列表中发现了此错误. .我们进行了研究,发现可用于SharePoint 2013的修复程序.
Receiving 500 internal server error while generating metadata for custom lists. As for now we have found this error on two custom list namely Companies and Invdividuals . We researched and found that a fix is available for sharepoint 2013.
推荐答案
您对自定义列表元数据的详细逻辑是什么,是否要使用元数据创建列表项?
What is your detailed logic for custom list metadata, did you want to create list item with metadata ?
在这种情况下,下面是示例代码供您参考:
If that is the case, here is a sample code for your reference:
<script type="text/javascript" src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
setlistitem();
function setlistitem()
{
var listName = 'Tasks';
var taskProperties = {
'__metadata': { "type": "SP.Data.TasksListItem" },
"Title": 'New task'
};
.ajax({ url:_spPageContextInfo.webAbsoluteUrl +``/_api/web/lists/getbytitle('"+ listName +"')/items, 类型:"POST", contentType:"application/json; odata = verbose", 数据:JSON.stringify(taskProperties), 标头:{ "Accept":"application/json; odata = verbose", "X-RequestDigest":
.ajax({ url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('"+ listName +"')/items", type: "POST", contentType: "application/json;odata=verbose", data: JSON.stringify(taskProperties), headers: { "Accept": "application/json;odata=verbose", "X-RequestDigest":
("#__ REQUESTDIGEST").val() }, 成功:功能(数据){ console.log(JSON.stringify(data.d)); }, 错误:函数(数据){ console.log(data.responseText); } }); } </script>
("#__REQUESTDIGEST").val() }, success: function (data) { console.log(JSON.stringify(data.d)); }, error: function (data) { console.log(data.responseText); } }); } </script>
如果问题仍然存在,请使用Fiddler跟踪Web响应以获取更多详细信息:
If the issue still existed, please use Fiddler to trace the web response for more detailed information:
http://www.telerik.com/fiddler
谢谢
最好的问候
这篇关于接收500内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文