question

artapp avatar image
0 Likes"
artapp asked ·

findItemsAdvanced works 75% of the time

When I run an HTTP call to findItemsAdvanced, it fails most of the time. I have to re-run the script a couple of times for the API to produce a reply. In PHP, I get "failed to open stream: HTTP request failed" and when I run the call in my browser (on a different IP address than the PHP script), it says "ERR_CONNECTION_RESET." Any ideas why? I'm using the example from the article [PHP (XML/XML): Complex searching (findItemsAdvanced)][1] from this site. My query without my security credentials is " http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=findItemsAdvanced&SERVICE-VERSION=1.0.0&GLOBAL-ID=EBAY-US&SECURITY-APPNAME=XXXXXX&keywords=ipod&paginationInput.entriesPerPage=4&sortOrder=BestMatch⁢emFilter(0).name=ListingType⁢emFilter(0).value=FixedPrice⁢emFilter(1).name=MinPrice⁢emFilter(1).value=0.00⁢emFilter(2).name=MaxPrice⁢emFilter(2).value=166.67⁡filiate.networkId=9⁡filiate.trackingId=1234567890⁡filiate.customId=456&RESPONSE-DATA-FORMAT=XML"; [1]: https://developer.ebay.com/DevZone/finding/HowTo/PHP_SearchInterm_NV_XML/PHP_SearchInterm_NV_XML.html
finditemsadvanced
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.

clickimusprime avatar image
0 Likes"
clickimusprime answered ·
The API requires HTTPS. The examples were never updated and use HTTP. Change the url to https:// https://developer.ebay.com/news/https-only-finding-api
· 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.

jitendra_developersupport avatar image
0 Likes"
jitendra_developersupport answered ·
Hi @artapp, Can you please provide us the request and response body of the call with all headers? Regards eBay Developer Support
· 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.

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.