在自托管从AppSelfHostBase派生的应用程序时,我遇到了一个问题,如果参数列表过长,则会收到无效的url错误。是否有导致此的配置设置?
[<Route("/Accounts/UserId/{user_id}", "GET")>]
type GetAccountsByUserId() =
interface IReturn<GetAccountsByUserIdResponse>
member val user_id = [||]:int array with get, set
这是引起错误的url示例
/ Accounts / UserId / 2133,2937,2235,6499,6502,6761,6760,740,838,6160,856,6778,7691,143,2536,1921,4150,6438,2882,6196,1716,1046, 1744,6288,6266,2775,166,673,196,205,220,142,260,266,333,672,469,761,775,877,1059,2239,2590,367,369,372,496,917,1708,2274,2275,1377,1752,6636,6637,6638,2281?format = json
结果是
错误请求-无效的URL HTTP错误400。请求网址无效。