This project is read-only.

MaxEntries Error

Nov 27, 2009 at 8:33 AM
Edited Nov 30, 2009 at 11:27 PM

Max entries apparently isn't getting passed to the ebay api correctly or something. I have it set to 20 but I can get like 10000 results back and it crashes the app. If I run a query in a browser like this http://open.api.ebay.com/shopping?{0}&callname=FindItemsAdvanced&responseeconding=XML&appid=MYID&siteid=0&version=565&MaxEntries=500&queryKeywords=xbox I get the proper amount of requested results, which makes me think the MaxEntries isn't getting put in correctly or something. Don't have time to look at it too much now though. Here's some debugging info from dos:

Unhandled Exception: LINQtoEbay.EbayErrorException: Error
   at LINQtoEbay.EbayHelper.GetItems(EbaySearchCriteria criteria, String query,
Boolean firstTime) in D:\Kamek\Code\linqtoebay-38945\LINQtoEbay\EbayHelper.cs:li
ne 75
   at LINQtoEbay.EbayHelper.GetItems(EbaySearchCriteria criteria, String query,
Boolean firstTime) in D:\Kamek\Code\linqtoebay-38945\LINQtoEbay\EbayHelper.cs:li
ne 92
   at LINQtoEbay.EbayHelper.PerformWebQuery(EbaySearchCriteria criteria) in D:\K
amek\Code\linqtoebay-38945\LINQtoEbay\EbayHelper.cs:line 41
   at LINQtoEbay.EbayQueryProvider.Parse(Expression expression, Boolean isEnumer
able) in D:\Kamek\Code\linqtoebay-38945\LINQtoEbay\EbayQueryProvider.cs:line 47
   at LINQtoEbay.EbayQueryProvider.Execute[T](Expression expression) in D:\Kamek
\Code\linqtoebay-38945\LINQtoEbay\EbayQueryProvider.cs:line 34
   at LINQtoEbay.EbayQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumer
ator() in D:\Kamek\Code\linqtoebay-38945\LINQtoEbay\EbayQuery.cs:line 45
   at Test.Program.Main(String[] args) in D:\Kamek\Code\linqtoebay-38945\Test\Pr
ogram.cs:line 22

Query String from VS looks correct when it prints it when it errors. Here's the output:

http://open.api.ebay.com/shopping?&callname=FindItemsAdvanced&responseeconding=X
ML&appid=MYID&siteid=0&version=565&MaxEntries=20
&QueryKeywords=xbox360&PageNumber=167

<FindItemsAdvancedResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2009-11-27T08:26:35.653Z</Timestamp>
  <Ack>Failure</Ack>
  <Errors>
    <ShortMessage>The request timed out.</ShortMessage>
    <LongMessage>The request timed out. The response may contain too many items.
 Try a more specific query.</LongMessage>
    <ErrorCode>1.23</ErrorCode>
    <SeverityCode>Error</SeverityCode>
    <ErrorClassification>SystemError</ErrorClassification>
  </Errors>
  <Build>E643_CORE_BUNDLED_10272615_R1</Build>
  <Version>643</Version>
</FindItemsAdvancedResponse>

More on this later.

Never mind I got it. My bad.