我有代码来获取我的用户的所有列表。此代码始终有效且仍然有效,但对于某个特定的商店,它在获取特定数量的商品后会引发错误。当此用户拥有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)个列出的商品。
要解决此问题,请尝试使用更多过滤器或缩小日期范围值以减少响应中的项目数