我有代码来获取我的所有用户列表。这段代码一直有效,现在仍然有效,但对于一个特定的商店,它会在到达特定数量的列表后抛出错误。当此用户拥有超过 40k 的房源时,它不会超过 18,398 个房源。与使用相同代码的列表相比,我提取的列表更多,没有任何问题。
var oContext = oContextMain(conSql);
var call = new GetSellerListCall(oContext);
call.DetailLevelList.Add(DetailLevelCodeType.ReturnAll);
call.Pagination = new PaginationType() { EntriesPerPage = 200 };
call.EndTimeFrom = DateTime.UtcNow;
call.EndTimeTo = DateTime.UtcNow.AddDays(Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["someSetting"]));
call.IncludeWatchCount = true;
do
{
call.Pagination.PageNumber++;
ItemTypeCollection items = call.GetSellerList();
错误信息所在的行
call.GetSellerList()
这是来自 eBay 日志记录的消息:
[12/12/2017 3:07:28 PM, Informational]
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<RequesterCredentials xmlns="urn:ebay:apis:eBLBaseComponents">
<eBayAuthToken>******</eBayAuthToken>
</RequesterCredentials>
</soap:Header>
<soap:Body>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<DetailLevel>ReturnAll</DetailLevel>
<MessageID>9c06db99-56ab-4ba4-ad4a-e38c34cee41e</MessageID>
<Version>981</Version>
<EndTimeFrom>2017-12-12T19:54:29.8672456Z</EndTimeFrom>
<EndTimeTo>2018-04-11T19:54:29.8672456Z</EndTimeTo>
<Pagination>
<EntriesPerPage>200</EntriesPerPage>
<PageNumber>93</PageNumber>
</Pagination>
<IncludeWatchCount>true</IncludeWatchCount>
</GetSellerListRequest>
</soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server</faultcode>
<faultstring>Web Service framework internal error.</faultstring>
<faultactor>http://www.ebay.com/ws/websvc/eBayAPI</faultactor>
<detail>
<FaultDetail>
<ErrorCode>14005</ErrorCode>
<Severity>Error</Severity>
<DetailedMessage>Web Service framework internal error. execute exception.</DetailedMessage>
</FaultDetail>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
[12/12/2017 3:07:29 PM, Error]
Web Service framework internal error. execute exception.
您能给我的任何建议都会有很大帮助。我被困住了,不知道该去哪里。
最佳答案
使用 GetSellerList 从卖家获取所有列表的代码块是正确的。
此 API 的响应项有限制(最多 200 个),这可能会超出您配置的日期范围。
此特定卖家在指定日期范围内可能有更多(> 200)件商品。
要解决此问题,请尝试使用更多过滤器或减少日期范围值以减少响应中的项目数
关于c# - C# 中的 eBay API GetSellerList 调用返回错误 14005 'Web Service framework internal error. execute exception.',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47782119/