如果在Chrome浏览器中的SharePoint o365中网址变大,则REST显示的状态为404(未找到) [英] REST showing responded with a status of 404 (Not Found) if the url become large in SharePoint o365 in Chrome Browser
问题描述
您好我在CEWP中有一个html部分,它通过REST从列表中检索数据。之前工作正常但是一旦$ filter参数增加它返回错误 响应状态为404(未找到)。
我甚至手动复制贴在浏览器中的REST网址它同样响应。
Hi I have a html section in a CEWP which retrieve data from a list by REST.It was working fine before but once the $filter parameter increase it return error responded with a status of 404 (Not Found). I even manually copy paster the REST url in Browser it response same.
当我在IE浏览器中测试它时,我注意到它发生在Chrome浏览器中。我做了更多测试并添加了一些过滤条件,IE也发生了错误。
What I notice it happened in Chrome browser when i test it in IE it work. I do more test and put some more filter criteria and error happens to IE also.
浏览器中是否有URL长度限制?我是否需要尝试其他方法?
Is there any URL length limitation in Browsers ? do I need to try other approach ?
https://<Domain>/sites/<SubSite>/_api/web/lists/GetByTitle('<List Title>')/Items?$select=CertificationDue,VendorID/VendorID,Status&$orderby=VendorID/VendorID desc&$top=5000&$expand=VendorID&$filter=(VendorID/VendorID eq 'Vend0034' or VendorID/VendorID eq 'Vend0028' or VendorID/VendorID eq 'Vend0027' or VendorID/VendorID eq 'Vend0021' or VendorID/VendorID eq 'Vend0030' or VendorID/VendorID eq 'Vend0019' or VendorID/VendorID eq 'Vend0029' or VendorID/VendorID eq 'Vend0041' or VendorID/VendorID eq 'Vend0002' or VendorID/VendorID eq 'Vend0025' or VendorID/VendorID eq 'Vend0044' or VendorID/VendorID eq 'Vend0012' or VendorID/VendorID eq 'Vend0005' or VendorID/VendorID eq 'Vend0013' or VendorID/VendorID eq 'Vend0036' or VendorID/VendorID eq 'Vend0040' or VendorID/VendorID eq 'Vend0016' or VendorID/VendorID eq 'Vend0039' or VendorID/VendorID eq 'Vend0004' or VendorID/VendorID eq 'Vend0007' or VendorID/VendorID eq 'Vend0001' or VendorID/VendorID eq 'Vend0020' or VendorID/VendorID eq 'Vend0033' or VendorID/VendorID eq 'Vend0014' or VendorID/VendorID eq 'Vend0032' or VendorID/VendorID eq 'Vend0035' or VendorID/VendorID eq 'Vend0003' or VendorID/VendorID eq 'Vend0037' or VendorID/VendorID eq 'Vend0045' or VendorID/VendorID eq 'Vend0011' or VendorID/VendorID eq 'Vend0047' or VendorID/VendorID eq 'Vend0010' or VendorID/VendorID eq 'Vend0015' or VendorID/VendorID eq 'Vend0017' or VendorID/VendorID eq 'Vend0042' or VendorID/VendorID eq 'Vend0043' or VendorID/VendorID eq 'Vend0009' or VendorID/VendorID eq 'Vend0046' or VendorID/VendorID eq 'Vend0023' or VendorID/VendorID eq 'Vend0038' or VendorID/VendorID eq 'Vend0008' or VendorID/VendorID eq 'Vend0006' or VendorID/VendorID eq 'Vend0024' or VendorID/VendorID eq 'Vend0022' )
Er.Pradipta Nayak
Visit my Blog
Xchanging
推荐答案
嗨Pradipta,
Hi Pradipta,
SharePoint中的REST URL最多有256个字符限制 - 参考:
https://msdn.microsoft.com/en-us/LIbrary/dn292556.aspx
但长度限制中不包含URL参数。
There is a maximum 256 character limit in SharePoint for REST URLs - reference:
https://msdn.microsoft.com/en-us/LIbrary/dn292556.aspx
However URL parameters are not included in the length-restriction.
以下是供您参考的链接。
Below is the link for your reference.
谢谢
Thanks
这篇关于如果在Chrome浏览器中的SharePoint o365中网址变大,则REST显示的状态为404(未找到)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!