Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/339.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 易趣API GetSellerList在C中的调用返回错误14005';Web服务框架内部错误。执行异常&x27;_C#_Asp.net_Ebay Api - Fatal编程技术网

C# 易趣API GetSellerList在C中的调用返回错误14005';Web服务框架内部错误。执行异常&x27;

C# 易趣API GetSellerList在C中的调用返回错误14005';Web服务框架内部错误。执行异常&x27;,c#,asp.net,ebay-api,C#,Asp.net,Ebay Api,我有代码来获取我的用户的所有列表。这段代码一直有效,现在仍然有效,但是对于一个特定的商店,它在获取特定数量的列表后会抛出一个错误。当此用户拥有超过40k个列表时,它将无法通过18398个列表。我用相同的代码提取了更多的列表,没有任何问题 var oContext = oContextMain(conSql); var call = new GetSellerListCall(oContext); call.DetailLevelList.Add(DetailLevelCodeType.Retur

我有代码来获取我的用户的所有列表。这段代码一直有效,现在仍然有效,但是对于一个特定的商店,它在获取特定数量的列表后会抛出一个错误。当此用户拥有超过40k个列表时,它将无法通过18398个列表。我用相同的代码提取了更多的列表,没有任何问题

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()

以下是易趣登录的消息:

[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.
[12/12/2017 3:07:28下午,参考性]
******
返回所有
9c06db99-56ab-4ba4-ad4a-e38c34cee41e
981
2017-12-12T19:54:29.8672456Z
2018-04-11T19:54:29.8672456Z
200
93
真的
ns1:服务器
Web服务框架内部错误。
http://www.ebay.com/ws/websvc/eBayAPI
14005
错误
Web服务框架内部错误。执行异常。
[2017年12月12日下午3:07:29,错误]
Web服务框架内部错误。执行异常。

你能给我的任何建议都会大有帮助。我被卡住了,不知道该去哪里

使用-GetSellerList从卖家处获取所有物品的代码块是正确的

此API的响应项有一个限制(最多200个),这可能超出您配置的日期范围

在指定的日期范围内,该特定卖家可能有更多(>200)列出的物品


要解决此问题,请尝试使用更多筛选器或减少日期范围值以减少响应中的项目计数

是,我将其限制为每页200个条目。然后,我使用do循环对每个页面执行一步。同样的代码也在一家拥有价值8万张物品的商店中使用,没有任何问题。但是这个特定的客户总是在18398记录的同一地点崩溃。这似乎是ebay系统中的一个错误。可能至少有一个缺陷项导致了这种情况。你想跳过那一页吗?您还可以加载包含200个调用和页面大小为1的“缺陷”页面来获取缺陷item@SirRufo我将尝试跳过该页,看看会发生什么。谢谢。这是一个有详细说明的例子。如果当前链接不能帮助生成错误修复,另一个路径是ebay开发者论坛;这有可能是一个DOS吗?循环被调用了多少次?你有任何线程在中间睡眠吗?很可能是DOS。正如我所说,同样的代码适用于商店,其大小是给我带来问题的商店的3倍。