C#数组错误端点对发送值有要求

问题描述

我正在尝试向API端点发送一个值,但出现此错误

"The type of \\\"value\\\" is incorrect,expected type: Array\"

有人可以指出我出了什么问题吗?

foreach (var book in section.bookIds)
{
    if (exists.Total > 0)
    {
        var firstMatch = exists.Items.First();
        ContentfulBookDetailsResponse matchingPoco = ContentfulModelUtil.GetPoco<ContentfulBookDetailsResponse>(firstMatch);

        ContentfulBookPageCreateRequest updateRequest = await ConstructBookRequest(matchingPoco);

        updateRequest.Fields.List = new LocalObjectReferenceField() { En = section.Name };
        await UpdateBook(updateRequest,matchingPoco.Sys.Id,matchingPoco.Title);
    }
}

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)