question

$$anonymous$$ avatar image
0 Likes"
$$anonymous$$ asked ·

Getting Started with the Finding API: Finding Items by Keywords - Tutorial Fails

What am I doing that is wrong? Using local host, error reads **0x800a138f - JavaScript runtime error: Unable to get property '0' of undefined or null reference** **Web page displays** eBay Search Results // End _cb_findItemsByKeywords() function // Create a JavaScript array of the item filters you want to use in your request http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsByKeywords&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=CloudHou-9fdd-44a0-8ad5-71b79bc858ff&GLOBAL-ID=EBAY-UK&RESPONSE-DATA-FORMAT=JSON&callback=_cb_findItemsByKeywords&REST-PAYLOAD&keywords=harry%20potter&paginationInput.entriesPerPage=3⁢emFilter(0).name=MaxPrice⁢emFilter(0).value=25⁢emFilter(0).paramName=Currency⁢emFilter(0).paramValue=GBP⁢emFilter(1).name=FreeShippingOnly⁢emFilter(1).value=true⁢emFilter(2).name=ListingType⁢emFilter(2).value(0)=AuctionWithBIN⁢emFilter(2).value(1)=FixedPrice Using [Quick Start Sample Application][1] to run test. **Error reads** Error: **StartIndex cannot be less than zero. Parameter name: startIndex** [1]: http://developer.ebay.com/quickstartguide/sample/js/Default.aspx **Code as follows: Posting code below appears to edit pasted code** *Testing code bug appears on this line of code var items = root.findItemsByKeywordsResponse[0].searchResult[0].item || [];*

eBay Search Results

// End _cb_findItemsByKeywords() function // Create a JavaScript array of the item filters you want to use in your request
apifinding api
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
davidtsadler avatar image
1 Like"
davidtsadler answered ·
The value for the GLOBAL-ID parameter needs to be EBAY-GB instead of EBAY-UK.
· 2 · Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Many thanks, spent hours looking at the code yet didn't see the problem. Immediately reading your answer it was obvious. I very grateful you took the time to answer my question.
0 Likes 0 · ·
No problem. Happy you've got it working :)
0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.